Need advise and help!! ASAP

anon
My brain is a mess and I don't know what I'm doing. My boyfriend and I kinda broke up yesterday and we are both really down about it. Idk if I made the right choice. I ended it because he put me through so much and my friends advised me to end it because it got me really sad. Pretty much the last 10 months has been hell but has also been the time of my life. He also cheated on me when we were in a bad place (she lent in and kissed him and he pulled out) he also betrayed my trust in other ways and I kinda feel like he was using me. Anyway, the last few days was when the fighting stopped and we started fresh, he was trying, I must admit. He tried so hard. But my mind is a mess and I ended it because of what he's done. He knows I don't trust him anymore but today after school we walked to the train station together and he was like begging for me to come back. He said he would change the things that made us fight so much because he is now aware of how ridiculous it was. And I really want him back. Like I can't imagine now being with him but what do I do? Like after everything I still want him. I have no grudge being held and i can only ever see the good in him. I told him that we will stay friends for the next few days and see what happens. Because I wanna make the right choice, but what do you guys think I should do? And if I take him back again, my friends are gonna judge me and stuff. starting to believe