How do you stop from going back to a toxic relationship?

I keep taking him back every time, even when I tell myself that I won't beforehand. I keep forgiving. I keep hoping. I just want it to stop. He always finds a way to reach out and reel me back in again. How do I stop myself from becoming so vulnerable around him? 😞