How do I tell her?

So me and this chick at the beginning had a fling for a bit. We started getting close to each other and feelings happened. Long story short; we still talk but she’s having a baby by a guy she hates and lives with but not in a relationship with. We both have feelings for each other but she’s having feels trapped with this guy. My problem is that I’m deeply in love with her; like I can’t stop thinking her. It drives me crazy when she tells me how he yells at, walks home sometimes drunk as hell, yells at her for small stuff and it pisses me off when I hear it. She’ll tell me she has feelings for me but she can’t pursue them cause of her situation. I don't know what to do. I came today to telling I her in love with her but I didn’t. I just need advice on what I should do. It’s driving me crazy

Updates
1 y
And another thing too. Throughout this whole pregnancy, I’ve cared more about the baby and her than he ever has. And he hasn’t done anything to help her out any of the baby stuff
How do I tell her?
Post Opinion