Some important feedback: You should almost always implement coyote time and jump buffering for platformers to make them feel good to play.
Also, there should be some indication to how much time the red switches have left.
It also might be a good idea to fine-tune your character's movement a bit before getting into too many levels. https://gmtk.itch.io/platformer-toolkit is good for experimenting.