Ex won’t get a blood test

So I have Thalassemia and I’ve begged my ex to get tested to see if he has it or is a carrier because I’m already high risk with my autoimmune disease but according to my doctor my baby and I are at extreme risk of loosing my babies life if my ex has or is a carrier of Thalassemia.

He’s refusing to get the blood test done because he has a “phobia” of needles yet he supposedly wants to be in the babies life but is willing to risk it. I also have an extreme phobia of needles and hospitals but I’m doing everything I can to make sure that this baby will be safe and healthy.

Is it wrong of me to want to tell my ex to bugger off and to stay out of our lives until my child is old enough to decide if they want contact with their dad?

It’s the last thing that I wanted to do and I know some people in my life won’t like it but I don’t think I’m left with any other choice, I’m 18 weeks along and not once has he asked how I’m doing or how bubz is doing although I’ve kept him in the loop since I found out I was pregnant.