I'm so sorry that happened. Ahole. I hope your female friend was trying to defend you when she originally spoke to him, but it's sickening that he slandered you in the process. That's how it goes for many victims of crime and especially SA.
I had to defend myself against lawyers, not just in family law but in criminal court for my SA case. Cross-examination on a stand, and paying tens of thousands of dollars to do. Because I'm autistic and I didn't know, I always gave way too much information and detail in my documents and my testimony. Apparently people think that's a sign of lying - trying to cover your tracks with too much information. I was told flat-out that judges didn't read it all because there was so much detail (even with evidence), that they got confused. Then of course I didn't make eye contact or appropriate facial expressions, which body language experts interpret as more lying. I had no idea at the time.
I won everything, ultimately, but the process of being interrogated and humiliated has left me more traumatised than the crimes themselves.
That's exactly what you're experiencing, too.
_________________
I never give you my number, I only give you my situation.
Beatles