I know and Barney/Ted is my favorite.
people say it's okay because Barney did it first but there is a HUGE difference between ex-girlfriend and ex-wife.
it's funny because Ted apparently never broke the Bro Code but in the end, he broke it worst of all.