Ex boyfriend

I had a really bad relationship with my ex when we were together and after two years he's trying to flirt with me again. He's such a fuckboy but it's like I can't stay away. It's so frustrating. What should I do?