We often open source security-first ansible and terraform infra patterns in our community, #!, which may be of interest to you. https://hashbang.sh https://github.com/hashbang
A lot of open source work there has gotten a lot of us jobs with major pay increases. I know I personally strongly favor sysadmins whose work I can see online. Less risk.
Also yes, security is a very negative industry, but people tend not to listen to overly negative people so I try to bring realistic threat models and spend most of my time teaching now.
Anyway. Best of luck and by all means reach out on sysadmin security any time :)
Couldn't you ramp up in another area of tech? There are many software engineering paths and jobs that don't require expertise in the things you mention.
I'm glad that you're proud of learning new things. I doubt you were born when I first learned to solve a Rubik's cube.
Hats off to you for working in Security. I've worked for a couple of security startups, and the cynical nature of the industry combined with the pure bitterness of the security-focused people on our teams makes me uncomfortable to just think about.