My recommendation after 20 years or so in tech: if you can, take a sabbatical that’s long enough to completely reset, and then re-assess. Travel, read, try stuff, do personal projects, do nothing for awhile.
I started a sabbatical two years ago, and in the beginning I was convinced that I didn’t want to ever work in tech again. In retrospect, that was at least partially the burnout talking.
It took me over a year before I started warming to the idea again, and I’m now fairly certain I’ll go back to a tech role, but with a very different perspective both on life and on whatever roles I take going forward.
There’s something incredibly valuable about fully replacing your routines and truly taking a break.
I sold some stock to make it happen, and it’s one of the best decisions I’ve made.