As Gino Mempin said, you need to install Pylance via a .VSIX file, but, as written in this GitHub issue, you need to install the 2023.6.40 version.
In any case, it worked for me, unlike the last version.