I broke down

Me & my ex have been not going through much but we just can't seem to stop talking. We were together for a whole year & then I found out he cheated on me during a break that we took & the girl ended up pregnant. Now 7 months later he lives with her, the kid is born, & we have met up to talk about our "situation" which we don't really have one! We just can't seem to stop talking. We can literally go weeks without speaking to each other but we always end up going back to each other.  A few months ago we met up & we had sex. It's not our first time, we've had sex throughout those 7 months of not being together. But what I'm saying is that I found out I can't have kids, & 2 months ago I got pregnant, my ob said it was because the medication that I was taking was helping me but that I shouldn't be excited because there was a possibility that I can loose it because I started to develop cyst in my ovaries. I haven't told anyone I was pregnant, not even him. I didn't love him like I used to I just liked the way me & him would talk, like friends. It didn't hurt me that I was pregnant, I have an amazing job that I know I can provide for it. 
About 2 weeks ago I ended up having a miscarriage. I started to develop more cyst then I already had so I lost the baby. I didn't cry because my ob said not be excited because of what I have so I didn't. I started to live like nothing happened day by day but  just last night I broke down. He texted me saying that he missed me, he missed our friendship, he regrets doing what he did, the relationship he has doesn't feel like the one we had & that he wanted a baby with me. Since we met. & I just broke down. I told him everything that happened & for the first time I cried so much. I don't feel the same way I did when we went out but I still loved him as a friend, I haven't pictured myself with him since we broke up & when I found out I was pregnant I didn't see him being there, all I saw was me & my baby. No one else knows about what happened, so I can't really talk to anyone. I just wanted to let it out :/