I got dumped - WTF is going on?!?!

Breakup advice - wtf is going on?!?

Hi, I (22F) recently got dumped by my (23M) boyfriend. We had been together for 2 years, and living together for the most part of this year. Two months ago, he has mentioned being worried we “weren’t compatible” or he had “outgrown the relationship”. This came as a SHOCK to me, because we had such a beautiful relationship, and it was so clear to me that he loved me a lot. He had never once shown any sign that we would be going to break up. Anyway, right after he said he wanted to breakup, he immediately retracted and decided it wasn’t what he wanted and that he didn’t want to break up. Anyway, a couple weeks pass and in that time things felt weird, I’d asked plenty of times if we were okay, and he always assured me he wanted to be with me and still loved me so much. He made me think I was going mad. Anyway, after yoga one afternoon he broke up with me again. This time he has said he wants to be alone again and is scared he’s given so much of himself to me that he doesn’t know what his needs/wants/identity is. I said okay, I didn’t beg for him back, but we have had a few discussions since as he has said things like “in my mind we breakup, stay kind of friends and eventually just get back together””I still think you’re my person and I have hope this will work out in the future” (He’s now decided to go travelling for a year or so and differed his uni degree). Some other things for context, the day he helped me move out he started following women and my friend saw him on hinge & tinder. I confronted him about this as we left in really good terms and he’d sworn on his mums life he wouldn’t do anything to intentionally hurt me. He eventually admitted it, and said the reason he got on was for a distraction and potentially the feeling of being “free”. I’m his first ever girlfriend, first time he’s ever loved someone, and we really are best friends so this is all so confusing to me. He set a reminder in his phone for 6 months time to message me before my birthday, and we has made a pact to still go together to our friends wedding in a bit over a year. When we had to see each other again to organise what we weee going to do with all our belongings, it felt as though we were back to normal and he keeps saying things like “you look so beautiful, I’m so proud of you” and “I forgot how cute you are”. On our departure for the last time from one another, he gave me a letter that said “HOLD ONTO THIS LETTER AS A GUARANTEE WE WILL MEET AGAIN. <3 F”. So I need advice. When I say we had a good relationship I mean it was SO good. We travelled, very minimal arguments, great sx life, he packed me lunch everyday and wrote me love letters to take to work each day, he would do such thoughtful gestures all the time, and I would do them back. We both really loved our life together, so I’m not sure how we got here?? Like I actually do not understand how it could go from being amazing, to all of a sudden he’s smothered and needs to run away but wants to keep me around for the future? Does he just not love/care for me anymore but is scared to let me go fully? Is there any hope for him coming back and realising his mistakes? Am I being silly for thinking he still loves me? I know for SURE I could not go back right now, but before this breakup happened, I was so certain he was the man I wanted to marry, and would happily spend the rest of my life with. He always felt the same and probably even more, so WTF? TIA XXXXXX