Im already thinking about texting him

My significant other and I of two years just broke up. I told him I didn’t love him. I know I fucked up but we had so MANY problems. We would break up every 3 days and get back together. I told him I didn’t love him so he can hate me and not come back. Everytime he comes back I take him back and then get hurt again. The worst part of it all I’m only thinking about the good times with him when I should be thinking about how he mistreated me, put me last in his life, and always took me for granted. I love him more than I love myself. Any advice?