Agreed. As I wrote, you can and should change scenes but with the intent to do something fun or where you feel successful. OP seemingly wants to grind new skills the hard way but that is just more agony.
To regain a sense of control and success in ones life requires more than following through on feelings of escapism.
I took a break from software development due to burn out, got my CDL and drove an 18 wheeler for a few months.
The experience was practically a relaxing (after training) paid vacation where I could see the country, and made feel so much better.
I was even able to go back to software development afterwards with renewed drive. So... no, the feeling won't follow you.