Should he take me back?

So last weekend I went out with a group of friends and my ex was also invited, my current bf told me 2 weeks ago that he is uncomfortable with me going because my ex physically hurt me before. Throughout the 2 weeks I made no effort to change the situation (I.e uninvite my ex, not go) and my bf is mad at me for not taking his feelings into consideration and not trying to find a compromise that would make us both happy. This is the second time I’ve according to him “I’ve not taken his feelings into consideration” he thinks these are red flags and broke up with me. Am I wrong for going? And should he take me back?