He doesn’t want me

So I was talking to a guy for a month or so and we hooked up a few times. Well the condom broke. I just found out I’m pregnant. With his baby. It’s bad timing but i told him i want to keep the baby. He said he doesn’t want to be with me he only wants to be there for the baby. I’m a little upset. He won’t even talk to me about it. He just expects me to tell him. And i told him I’d like to talk in person. He’s been avoiding seeing me in person and i just don’t know what to do. I still have feelings for him and i didn’t get pregnant because i wanted to trap him. It was an accident. But like I asked him if he’d talk to me like we get along and not like divorced parents and he said he’d rather talk like divorced parents and he’s done with me and only wants to talk to me about our what he calls “situation”. What should i do?