I would've focused on game engine development and gone into the game industry instead of chasing the money in web/web-adjacent tech. It's almost impossible to make that kind of change now without taking a massive pay cut and it genuinely makes me sad almost daily
I've made several half-attempts at this over the years, but it always ends up falling to the wayside when life gets hectic. Maybe one of these days I'll finally push through though!
Could you work on an open-source game engine in your spare time, then use that to pivot across? And/or get a web-dev job in a games company and then try to get an internal transfer?
My wife has suggested the latter a few times and it definitely seems like the most realistic approach. I have a small game engine I've worked on off and on again over the last few years, but it never feels like I have enough time to make real progress
If you're into game engine development and C++, Godot is very accessible for new contributors. It's a great place to explore that stuff while also making (small or large) contributions which will actually get used and appreciated by a growing number of serious game developers.