check pylance extension is installed or not. If not, install it and in settings check below items, it will work
"python.languageServer": "Pylance",
"jupyter.enableExtendedPythonKernelCompletions": true,
"python.autoComplete.extraPaths": [
"C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WindowsApps\\python.exe"