Product manager thinking of transitioning to engineering-related role

Title mostly.

I'm kind of over PM. I feel stifled in my current role, definitely burning out at a rapid pace. Management controls all decisions, I feel more like a project manager than a product manager. I've given up on making an impact because I have almost no autonomy. I don't get inspired writing docs, by the politics, endless meetings, and fruitless arguing. Although I work on a technical set of products, the org has been pushing all of us to sideline technical understanding and focus on making more money. This is totally draining and not the type of challenge I enjoy, mostly because it involves garbage ideas and not focusing on the customer.

I've PM'd technical products such as search, recommender systems, etc. for 8 years. I know how to write code and understand how to build enterprise level software to some degree. I've been making hobby projects for years and am currently pursuing a masters in computer science with a focus on ML. I find myself far more interested and engaged when I have to write some code, yoink some data and write a complex query then clean it up. All the technical stuff seems to fulfill me far more than the business stuff.

With that being said, I'm curious if anyone here has, or knows any that has, successfully transitioned from a business related role to a SWE or Data Engineer role. If so, how did you do it? Did you start at the very bottom as a SE I or did your experience net you a more senior role? Do you have any advice?