It seems to be common sense that because exes are part of the past, they should stay in the past. I know that there are circumstances where time has passed and then somehow people end up back together because it was actually meant to be. Which is fantastic for them, because with time and space they realized what they were capable of. However, in other situations where a couple is breaking up and getting back together, it tends to end up being just mentally distressing and exhausting for both parties.
Exes were once people who meant a lot and were seen as possibly the best people in our lives at one point. They are to be appreciated because of this and because they taught us so much and gave us new memories and experiences to look back at. They are not meant to be looked back at in regret or anger; however, if we are constantly running back to them, the constant disappointment will soil the good memories left.
Ending things with a person and then running back to them because it's comfortable and safe is self-sabotage and toxic. I understand that at one point this ex-meant everything and you might even have loved them, but if you find yourself constantly taking them back and then crying about it, or finding that nothing has changed-- what's the point? You need to realize your self-worth and understand that your mental health and well-being is more important than one possibly average person.
If you are stuck in a situation where you find yourself running back and then being disappointed, and you really believe this person is your one, then give it time. No seriously, lots of time and space. Find other things to preoccupy your mind with and if after all that time you still find yourself desperately in love, then yeah, maybe you should work it out. But usually, you will realize that the time will end up healing your broken heart and you'll see that you just needed to step back from the cycle and see the big picture: that the world contains so many unexpected things that you have not even thought about yet.
Understand that people all over the world fall in love with multiple people before they meet the one.