Why does he treat me like this

Every time I get closer to him or hug him he pushes me away wish I wasn't pregnant by him I'm not happy anymore I regret this I am tired of getting hurt I don't want my daughter going through this I am just leave him alone