After going through instreharne and Bharel 's answers , I applied the following in my settings.json
{
"python.experiments.optOutFrom": [
"All"
],
"python.envFile": "",
}
and restarted vs code, which solved the issue for me