I find it so weird that a girl can talk so harshly about her ex, making it seem that she hates him, but later gets back with him.

Look, I don't have a lot of dating experience but it seems like cognitive dissonance to me.