sleeping with the enemy

I've just made a grave error. My ex who I loved and cherished for a whole two years I was living with him and more. The one I got pregnant with and ended up preparing by myself and legitimately ending up alone before her first trimester was up. Split up, had an ectopic pregnancy alone, and hasn't spoken to him for a good 5 months. one night I'm not able to drive home and no else answered... he ends up giving up his bed... and then I had suggest I just sleep in my car and he just grabbed me tight and well I got suckered... so yeah we had sex... unprotected no less... and then my period starts. So we laugh and check everything to see if it got anywhere. We end up going back to sleep. But I had woken up at 2 am and just felt so gross I grabbed my things and just left. I am currently on my way home just a couple more hours