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.
I plan on doing nothing computer related for the first few months. I need to get healthy again. Once I get healthy I'm gonna spend some time doing deep dives into the new hotness (probably AI), then look for another startup type company who won't shackle creativity and ambition with useless process (scrum).
Or maybe I'll just do some contract work here and there and be semi-retired.