I love this story. I can intensely relate as I too have made the pivot from being a UX professional to software engineering a few years back. Sure I hadn't achieved anything close to being the director of design for a known tech firm; My design career was just starting to flourish when I'd made the move. But so much of the sentiment regarding confidence and self-doubt were the exact emotions that I had experienced .…
Fast forward 8 years later, I am a Lead Developer and making double what I made as a Sr. Manager. I am still learning, I am still behind compared to my peers. Technology feels like it's moving too fast.
But in the end, the best part is to open my IDE and write code. It makes me the happiest.