I recovered fine, but it was pretty brutal. For a while I couldn't even look at code without getting nauseous and a having a splitting headache. I'm not exaggerating here, it was like I had lost the ability to comprehend code at all. Code was just meaningless symbols randomly arranged without any rhyme or reason.
What helped eventually is about ~6 Months of completely distancing myself from Programming. No programming for work, no programming for fun, not keeping up with current developments, nothing. I was fortunate enough to be able to afford this, but I truly believe that a 6 month long hard brain reset was needed. Wouldn't have worked in 3 months. Other comments here echo a similar sentiment and you'll find other blog posts and personal experiences on the internet with the same conclusion.
On the upside, coming back after 6 months and discovering that I stopped getting physically ill trying to code was an amazing moment. I fell in love with programming all over again. Only this time I learned to listen to my body and started prioritizing health and happiness over a steep career and financial success.
Honestly I don't think many people would be impressed by my professional output (especially not on this site), but I can honestly say that I've never loved it as much as I do now and I can rest easy knowing that it's sustainable and doesn't negatively impact my mental health.