This issue appears for some Modules I don't remember which other one I had issues with yesterday but for now the re module seems to have issues auto completing. Tried the same code with pycharm and had no issues. Not sure why.
vscode example.
Pycharm example.
This worked for me:
You can Install pylance language server for language support after reinstalling vscode
OR
In vs code open command palette Ctrl+Shift+p
There select Python:Select Interpreter
from the command pallete
Close your vs code and then try.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With