bd treats me like shit in front of the new girlfriend

we have been split 6 months, he’s been with the new girl 5 months. when he’s not around her he talks to me nice but when he’s with her he talks to me like he hates me, any idea of why he does this? it honestly hurts my feelings