Thanks for the feedback!
As for how i got a web build with pygame, i used the pygbag tool.
pygame-web/pygbag: python and pygame wasm for everyone ( packager + test server + simulator )
You only need to do a few adjustements listed there for your game to be compatible with web.