I used the script that’s included with AE to trace the path and then reworked it from the null to the snakes head. Then I used the follow the leader expression for the body segments to look at the segment one layer above as it’s position minus a time time delay. The time delay is on the Delay controller null.
Then I just pressed “cntl+alt+O” to open up the orient to path option and turned that on for the body segment. Then I just duplicated each segment until I had a snake.
I noticed that if you make really quick turns, this effect falls apart, so adjust the path accordingly.
Attached is AE project I made as example, you might be able to use that as a starting point.