I’m pregnant and depressed about my ex 😰

Long story short I got pregnant by my bf of three years. I thought he was the one, he had a lot of qualities that I liked and A LOT that I didn’t but I loved him. He broke up with me and broke my heart after finding out that I’m pregnant but for some reason I feel so sad and depressed and I miss him. I used to cuddle against him every night and I feel like I’m constantly on the verge of tears 😭 any advice to get over this relationship?