Confusing ex... help!

My ex broke up with me a few weeks ago and claimed he wanted to be friends... the next day he said he didn’t want to keep the snap streak and didn’t want to be my friend anymore because he needed a “break” when he’s the one that broke up with me. My guy friend then asked him about me and he said “I don’t give a fuck about her.” Then, today he texts me congratulating my team on our recent wins and apologizes for being a dick. What do you think his intentions are? Does he want to get back together? Remain friendly? Why would he apologize if he doesn’t care anymore? I’m confused, please help!