You will have some error in the code.I have used pygbag for a JAM and it worked without any problem.
You must program thinking about pygbag, a normal game of pygame won't work if you don't adapt it to pygbag.
I did fix it after all by getting help from the pygame community discord, The main issue was that the sound clips weren't in .ogg format, and that I forgot to add await asyncio.sleep(0) after every While True function.