I had this problem, I finally created a new profile named python and moved off the 'default' profile which somehow developed incorrect or missing settings and there was no clear way to restore it to factory defaults and let it reconfigure itself again. I also made sure windows was configured to use VSCode to always open the .py extension. This got my run button to work again.