go to vs code > flask icon to see the tests > it will show info like your project file is disabled, click on it and enable then at bottom right corner a pop up will show asking you to confirm. confirm that and your vs code will now recognize those tests.