It sounds like this man does not want to be emotionally involved in a relationship. He is not acting stable enough to keep the relationship steady, he sleeps with you and finds out your pregnant but instead of moving closer he moves away from you, and he makes jokes and buys TV's while you are going through a terrible experience. He may not be abusive the way your other relationship was, but he is abusive in his own way.
Telling you that he cares about you deeply but is leaving because it is in your best interest says he is not thinking of you at all, but thinking of himself instead. He is coming and going at his own convenience, getting involved with other women and telling you that he and his family think of your relationship as friends, though he has slept with you and you have been pregnant twice. That is not a friendship, that is a relationship and a serious one. But that is not the way he sees it, even if you feel differently about it.
It does not sound like this person wants the responsibility of a real relationship. He is either frightened of one, or he is too self centered to give more than he has to you. Unless he sees his behavior as a problem, he is not going to change.
If he does come back, you may want to end things with him. This is not a healthy relationship for you. You will never be able to settle down with him and if something does go wrong or you need something, he will not take it seriously and be there for you. He will continue to make excuses about his behavior and try to blame his behavior on you and he "just being friends". You can talk to him about counseling, but if he doesn't see his behavior as a problem, he won't take counseling seriously either. However, you may want to go yourself to explore why you have strong feelings about men who treat you badly. There is a pattern here for you and to break it, you need to explore what needs you have that are not being met. Somewhere in your life, probably your childhood, you did not get what you needed to feel secure, validated and loved. So as an adult, you are trying to get these needs met through men who treat you as you are used to be treated. Therapy can help you explore these needs and find a way to fulfill them so you can have healthier relationships.
I hope this helps,