Was I wrong here?

I really hurt my boyfriend and I didn't mean to. Before him I was married to a huge Mama's boy. Mom came before me every time. He would tell his mom about our fights. When I was going through a d/c because I had a miscarriage he made me go there alone because his mom needed him because she's upset about losing her only grandchild. She would always get between us and he would always pick her. Ruined our marriage. My boyfriend now is a good guy. He doesn't have a relationship with his mom though. His dad died when he was a baby so he had no memories of him and his mom lost custody of him when he was 8 for child abuse. She got 50 years in prison for how badly he was abused. He went to stay with family then in the system and was never adopted. So he has no mother figure. It's honestly refreshing to not be with a mamas boy anymore. My mom brought up my ex husband and I said " I can't stand him. I'm happy to be with someone who doesnt have their mom in their life." My boyfriend messaged me saying he tried to play it off but what I said really bothered him because he would have given anything to have a mom who loved him. Instead he was abused and never got a parental figure. Was my comment wrong? I feel bad