Sometimes imports are not recognized in my VS Code:

It's annoying, because CTRL+Click on an imported object or function won't work. Usually it redirects to the definition of it, so I can have a look on the source code.
I can run the solution without issue though.
How can I make it recognized ?