That’s PyInstaller’s own code being caught by Windows. It happens even with a Hello World.
If you go to a specific version download (e.g. 3.12.4) one of the download options is called “Windows embeddable package”.
That’s a normal, vanilla Python installation, in which you’ll have to install all the necessary modules again, but after that, you can insert your own code and distribute that.