He said my isolation depression and panic attacks are a learning experience

We used to be very close and dated for over a year. I happened to mention I was struggling with talking to no one for two months and getting panic attacks when I realized it. I struggled with mental abuse my entire life and I eventually disclosed this to him. he gaslit me after I confronted him about something small but it was scary to see him lie to my face and then make me feel like I was the bad guy when he knew he lied. He was all I had but I felt triggered and decided to leave. Recently he’s started to try talking again; I decided to respond. He asked how I was doing and I said I handnt received any texts or talked to anyone in 2 months but that books had saved me. I’m not sure why I said it and I know he wins if he knows but I decided to disclose that I’d been getting panic attacks from being alone. I said it felt like a punishment. He responded by saying Maube Its a learning experience. it’s a slap to the face to hear this and I feel rlly insulted. How do I respond - or should I? I’m not sure who else to ask about this

Thank you all