Haha help

Hey so I got cheated on, I dumped him but he keeps going out of his way to talk to me but can ignore me for days until I start to get over him, and then he just pulls me back in. It’s like... I don’t know how to cut him out of my life because I know it’s gonna hurt like, how do I deal with this, I love him.