I spent the last 3 years teaching at a software bootcamp, after being a SWE for 8yrs. It's been super rewarding - you're working with adults who are often in a hard spot financially and personally, and you get to help coach them through a major challenge, and see the positive outcomes for them.
The pay will likely be much higher than teaching elsewhere (though I still took a 30k cut). Some bootcamps are more legit than others, so just do your research first