Need some serious girl advice :(

Me and my boyfriend ( who I have been with for over a year) broke up couple weeks ago and we've previously broken up loads and loads of times befor and I keep getting hurt and then he makes me fall for him again and honestly dk what to do do I give him a chance? Or will I look like a mug , I need some advice on how to get over him cause I don't want to lose him cause I love him but I can't be with someone who keeps hurting me :( need serious advice 😪