I got into teaching several years ago, leaving industry behind. It's great! I had gotten a little bit tired of programming other people's stuff. It wasn't the programming itself that was dull, but I found most products that people wanted were actually kind of boring and formulaic. And none of them really worked for the betterment of humanity.
Teaching is a massive challenge. The stuff that I teach in computer science I find to be relatively easy after 20 years in industry, but figuring out how to teach it effectively? That's really, really difficult. Such a great challenge to be able to sink my teeth into—so rewarding. And it's for a good cause.
I'm not opposed to going back to industry work. I'd probably use genAI to get a bunch to get stuff done, too, even though I don't use it for my personal projects. But it would have to be some work that I believed in, that was doing some good in the world. I can imagine working for the county, say, or for a non-profit.