When I attempt to import a module from a local package (from core import config), VSCode's syntax highlighting isn't working. When hovering over config, it shows "config: Any" (the editor should show "config: module"), indicating it's not recognizing the module for some reason. It has no syntax highlighting, and VSCode doesn't provide autocomplete for any parts of the config module.
from core.config import something works, but that's not what I need to do. For some reason, VSCode autocomplete suggests importing the module from itself, like this :
from core.config import config
This fixes the syntax highlighting, but that code is actually wrong throws an error when the script is run in the Python interpeter.
Here's the file structure I'm using.
I don't want to change my code or add any files-I only want a solution with VSCode config or something similar. Note that jedi completely ignores modules.

from core import configin your init.py? That could affect where VSCode sees the module.