YUP - 7 months and just about to go on maternity leave. Twas a tough time emotionally I can't lie about that, made even harder by only having weeks to make all the practical adjustments that come when a long relationship breaks down.
Best advice I got was that as an adult you can only be responsible for your OWN behavior so wishing the ex would change his mind etc is a complete non-starter.
Concentrate on sorting the practical stuff for both before & after the birth.
Housing, any loose ends like joint accounts. Work. Look now at childcare options so you aren't left panicking later on. Transport - did the barsteward take the car?
Build a support network, both pyhsical like friends who have already done the pfb stage and mental. I got a lot of confidence re coping alone by means of doing a first aid for babies course, it meant I KNEWI had the skills to know what to do in the worst kind of middle of the night alone with a newborn emergency. For me that baby first aid course gave me the mental strength to cope the ex had sapped out of me by leaving.
Sort out an online grocery store you like - they all vary from area to area so Tescos might be the bees knees in your locale while elsewhere it might be terrible. Get a slow cooker - eating properly is harder when you are by yourself with a baby that cries everytime you pick up a fork. My slow cooker was a godsend. Get into a routine now of the crappy day to day stuff that adds stress so automate any bills you haven't already, online shopping.
Locate your nearest children's centre - these places are meccas of all sorts of knowlede that will be handy from local cleaners to Mum & tot groups.
You have the luxury of time that I didn't so you don't have to dive into it all at once. Let the ex play silly buggers all he like while you concentrate the part of parenting you can take ownership of and focus on being the best Mum you can. I found once my son arrived I was a/ too besotted by my child & b/ too darn busy to mourn the loss of the ex.
Nearly 8 years on, life with my child is as good as it gets I reckon. I feel sorry for the ex nowadays.