Fucking with my ex

Why do I keep doing this and going back to him? He wants to date I’m not emotionally ready again. He broke up with me. So we formed a fwb thing thinking that would be better. What is wrong with me for always going back to him