how I feel?

so I was talking to this guy for about 3 months , he then asked me to be his girlfriend and we lasted for 8 months. But one day he ghosted me a for a different girl which hurt a bit because I really cared about him. Anyways, months go by and he says he misses me and he regrets leaving me so I take him back but we just fall out of it again. I still think about him and i miss him so much but I don’t know what to do. Can anyone help please?