Pregnant and not sure how to feel

Well, I just found out I’m pregnant. The father and I tried for over 2 years with absolutely no success. We split in May, and we’re kind of off and on. During this time, he had dated another woman and I was unaware. We are currently not together but are hanging out and trying to reconnect.

I don’t know how to feel about this. Im so very happy and grateful to be pregnant, as I thought I was infertile, but I’m terrified because we’re not together.

Has anyone gone through this and can give me some insight. I have not told him yet and am still unsure of how to.

Much love, thank you.