Firstly I am very sorry to hear you have been a victim of domestic violence. You are now pregnant and homeless so I can imagine you feel scared about the future and also have feelings of uncertainty. When we feel uncertain it can be common to look for familiarity, which is what you may be doing when looking at pursuing a relationship with this man.
The fact you have posted shows you may know deep down it is not a good option. Social services can remove your child if you do not safeguard them.
Have you looked at trauma bonding, this can be really common when people are subject to abuse. Have social services offered you to look into freedom projects, that can help you understand domestic violence and the cycle around this.
Just as a last point, a baby can rock even the most stable relationships, the pressure, stress and lack of sleep can make the most calmest of people snappy and act differently. So you need to think it’s likely to increase the risk to you and your child.
I really hope you can find the strength to walk away from this man knowing that you and your baby deserves better. Also look into ACE’s which is adverse childhood experiences, domestic violence is one of these. Look how these can significantly impact on children’s mental health, safety and security.
I say all of the above with compassion towards you and your unborn child and I can imagine this must be a very painful time for you right now.