He cheated and i might be pregnant

Hi guys i am super confused and lost and honestly don’t know what to do in this situation. Me and my ex have recently broken up because i caught him flirting with a bunch of other girls for the third time. i forgave him the other times and tried to move forward because I love him and wanted to try to work things out, this last time was the last straw for me and I finally was able to leave. Before i found out about the other girls we were trying to get pregnant but had no luck, but i think that i finally am pregnant. I haven’t taken a test yet because honestly i’m scared. I know that if i’m pregnant and he was a big part in my life again that I would want to get back together with him because even though he hurt me i still love him. Should i give him another chance? Should I move on? Should i just play things by ear for now? All of my friends think i’m so stupid for wanting to be with him again but idk.