Guy keeps going back between me and his ex girlfriend... Walking away is my best option correct?

He and I met 4 months ago, I'm 23. He's 21. We had an instant connection and attraction. He broke up with his girlfriend of 2 years 3 months ago. He told me how insecure and dependent she was on him, how opposite I was of her. He admired and respected me from the start, and I always felt like the more in control one out of the two do us. We became a couple. Talked every single day. Then out of no where a few days ago he messaged me a we won't work, he jumped into this, he has feelings for his ex, he can't give me what I deserve, he knows he'll kick himself for doing this but we can't continue. Then the next day (2 days ago) he asked for my forgiveness, another chance, etc. Then yesterday he sent another message saying we won't work. I went to his house unannounced and told him off, spoke my mind about how much of a flake he is. How much of a flimsy wimp he is. How you don't treat people like that, and how much less of a man he is. He was silent and I put him in his place. Then he messaged me he wanted to talk it out later this week and I declined and said I won't continue seeing someone who cannot see my worth and plays me around like I'm nothing. Now I believe he is going after his ex girlfriend again. I sent him a final message saying quite a lot regarding who he is and his immaturity, and how I see him for who he is now, and the person I initially knew never s existed, and that I felt ashamed for believing in him and that he could value me. I told him not to respond. I know he does care about me, but the way he ended things with me ( a sentence over a text message ) hurt because it felt like I meant nothing to him. Which I explained to him when I saw him.

I did the right thing and he's a mess right? Will he come back, and should I never give him another chance?
Guy keeps going back between me and his ex girlfriend... Walking away is my best option correct?
Post Opinion