I had the same issue and just I checked the Pylance extension, which asked me to reload the VSCode window for updating. Did that, resolved the issue. This may not be as simple as that for everyone but mind checking that one before trying more exotic solutions (in my own case, I could have saved some time) :)