I broke up with my boyfriend because I caught him flirting with other girls again on his social media accounts. Did I make the right decision?

My ex and I dated for six years. It has always been so hard for him to apologize and admit his mistakes, but I kept giving him chances. I felt like I've always been the one saving the relationship, so I decided to end it last week. I know this is going to sound pretty shallow, but I saw that he liked this girl's picture on his social media account. She was the same girl we had an argument about a while ago. I told him that I'm a little jealous of her, so I would appreciate it if he stopped giving her the attention since she has flirted with him in the past. He just said that he didn't do anything wrong, never apologized, and let me go. Part of me didn't want to break up because I invested so much time and effort in the relationship, but I felt like I was being unfair to myself if I would let him get away with it again. It just sucks because he could let me go like it was nothing. He did send me a few texts asking if I wanted some stuff I left at his house, but I just said to throw them away. But he never apologized and acknowledged that I got upset because of that girl.
I broke up with my boyfriend because I caught him flirting with other girls again on his social media accounts. Did I make the right decision?
Post Opinion