Emotionally hurt

Found out that while in the midst of a relationship struggle while I was away and giving him space to think about what truly matters he decided to message an ex and talk about our sex life and even give her his number telling her to keep it secret and that he didn't want me to find out well I found out and now I'm so hurt I don't know what to do we just found out I'm pregnant and then this ugh