To escape the bathhouse in end of the snake in Assassin’s Creed: Origins climb up the wall to the left of the area where you assassinated Eudoros. Follow the walkways above to the exit of the bathhouse. Jump down and sneak up the stairs to the exit of the bathhouse. .
As found on Youtube