Try restarting VSCode. Sometimes it gets hung up. Whenever you install a new module, restart VSCode Becuase that normally fixes it.
I'm using the python playsound module with a little app that I'm making, and it errors out if I use version 1.3.0, so I always use version 1.2.2, but I encountered a bug that caused me to uninstall and reinstall a few different versions. Eventually, I somehow managed to get vscode to think it has playsound 1.3.0 installed. And it errors now when I run it. But if I just run the raw file then it works perfectly fine.
Note: even when I uninstall the module it still tries to run in vscode, and the same 1.3.0 bug happens, the first note plays and then I get an error.
Vscode not changing module version