Not sure if this is the best way to do it, but I made it check if the body was the player Node before reloading the scene, just incase we have other objects bouncing around the scene as distractions.
func _on_maze_body_exited(body):
if body == get_node(“Player”):
get_tree().reload_current_scene()