I’m assuming the flag was from Windows Defender too?
I use the [Build Distribution] button on RenPy.
The engine uses a build script here: https://github.com/renpy/renpy/blob/master/launcher/game/distribute.rpy
There is an archive on Renpy’s repos which used pyinstaller (renpy-dep), but I don’t think it’s used anymore.
I didn’t have the issue with your game on Win10.
For my game, the antivirus flag came up on a Win11 PC.