2D Platformer Pathfinding

Would anything remotely similar to this work for 2D Platformer Pathfinding?
(Acceleration on pathfinding behavior is 0 btw)

Currently… it kind of works. Sometimes it gets stuck going back and forth, and there’s probably more problems I haven’t encountered.