Its horrible when friends do something that hurts, and the feeling of shame, humiliation, sadness and anger are all valid.
I can empathise as an ex friend of mine shamed and humiliated me in front of others. It was something I couldn't come back from. In the moment I just acted cool, calm and collected. I hate confrontation and conflict, my other friend openly gasped at what my ex friend said.
I messaged her that I needed some time and space from the friendship and I would contact her when I was ready.
The ending of the friendship was a bit messy and I won't go into it, however, when I was on a break with her I realised that she didn't truly care about me, it was all about her.
She was actually very jealous and had no self awareness, everything was about her and her problems, I realised that I could breathe again without her "friendship," i realised how controlling she was. I felt peaceful and calm without her friendship, I had less stress without her friendship, she was definitely an energy vampire.
We'd been friends for around 15 years, and I was sad that it came to this, but I had to protect my mental health.
Looking back am I sad it ended? No! The friendship had run is course and the whole friendship from beginning to end taught me lots of things about life, some good, some bad.