Thinking about my ex! Help ๐Ÿ˜”

It's been 6 months. I wouldn't say I'm still hung up on him. But I just feel sad for him. The last couple months of our 3 and a half year relationship I just wasn't attracted to him anymore. I didn't want him touching me. So I cheated. I broke his heart. The whole relationship I don't think I treated him fairly. I was always trying to point out his flaws and pick fights. He was actually so wonderful to me and did nothing wrong. Thinking back now I'm just so sad I did all that. I guess it's a good learning experience for my next relationship but I just have this guilt. Apparently he's doing great now. He told me he realized how unhappy he was in our relationship and wished we ended it sooner. So I guess that's a good thing. I just still feel so bad about it. I know it's waaayyy in the past and nothing can fix it but I just want to hug him and apologize. He wants nothing to do with me now and blocked my number so I can't message him.