It was working on the test levels but not in the actual game! I did find the error (after the submissions closed). The CharacterBody3D had a property overwritten in the game scene. I unchecked a box and it's no longer getting stuck at all. Oh well, lesson learned.