Earlier quoted context omitted.
I'm taking a 9 month sabbatical next year so I can learn to enjoy coding again. It's not coding that bugs me, it's all the BS you have to deal with modern management practices that makes it unbearable. I did management a few times and didn't like it. Keep in mind that no matter what you do, if you're in a corporate environment, that's still going to be a problem.
I presume that you are familiar with it already, but in the off chance that you are not. Check out the Recurse Center
Would probably be difficult to do that nowadays, although it's tempting. I doubt my partner would be comfortable with me being away from home that long, though. Even me going to a convention for a few days seems to be pushing it sometimes.
There used to be a monthly hacker night meetup near here at an app dev shop, and that was fun to go to and code around other people, but that died with the pandemic.
There was one time period about 20 years ago of about two months where I did a daily sabbatical to the library when I was in between jobs, and spent ~4 hours just working on my games each day (and I started the day with about an hour reading classic books before heading to the quiet work area). I remember growing a lot as a programmer then, and I released one Flash game and made major progress on another during that time.