At work we run python under a custom environment, and thus we use a non-standard shebang. I tested that VSCode recognizes python files without a .py extension if they h
And to complement mklement0's complement:
On Linux, see /usr/share/code/resources/app/extension/
E.g for Lua: /usr/share/code/resources/app/extensions/lua/package.json