I have this same issue. I'm a PM who has been trying to move into a dev role for some time. For 6 years now I've self-designed, developed, and published several reasonably polished mobile apps and games that have decent reviews, and even some press. Interviewers always thank me for my time and tell me they are impressed with my projects, but "unfortunately we are looking for candidates with professional experience".
Just develop something on your job. Any role in a tech company, or beyond, has lots of opportunities for developing code. Bosses won't get in your way, they are hungry for automation. Then, once you have spent even a little time coding, your role as described in your resume accurately includes coding.
I'd have no problem looping you but you probably wouldn't end up at the level you wanted based on your pm experience.
Also coding solo and coding on a team are different. We spend a lot of time trying college hires or the few so developers we hire to work on teams and think about how others will intact and maintain your code.
Feel free to email me. No idea what city you are in.