Use the flashlight and click around the backrooms to move, the only way to escape it is by encountering Void, the character that the player sees right before the light goes out
Thanks! I think it was bugged a bit, I could find my way out by going back and forth for a bit randomly