Am I overreacting ? My marriage is over

My husband and i been married for 6 years . we have a 2 year old and I’m currently 35 weeks pregnant.

I just found out he has been texting with someone else. At first he denied everything but after me speaking to that someone else and having proof of them texting he had no choice but to confess.

He met her when he used to do Uber. He asked for her phone number and they been flirting and he’s been insisting her to hang out and what not. He says he did it for attention because I don’t show him love. I honestly want to leave. Maybe I’m overreacting bc I’m pregnant and I’m trying to protect myself and my girls from any disappointment. But at the same time I think I’m right from wanting to leave . It was only text never physically. But it doesn’t matter right? Cheating is cheating. I’m so heart broken! It’s like I know what to do but at the same time I don’t and need help.