Let me say I can relate a lot to your story.
I am a medical doctor too who is making a career transition into web development. My journey has been different though. It was more external pressure why I ended up doing medicine. I sometimes honestly joke and tell others that I did medical school part time because it was being involved in Information Technology (IT) and running a computer lab on the college campus that kept me sane during medical school.
I would leave from ward rounds and clinics and head to the computer lab where I would be running networking cables, performing server administration, repairing computers or writing bash code to automate processes.
Medicine just never fueled that problem solving drive for me as much as IT did. The daily grind of medicine just never filled that creative problem solving void that lay inside of me. I would constantly try to find ways to incorporate the two but medicine would tend to consume my time and energy. Two years ago I decided to go all in and brushed the dust off the web development knowledge I gained during high school working on websites for multiple organizations including a hotel and the local chamber of commerce when I decided to create a telemedicine company.
At first I started looking for developers to build it for me. However, with limited funding at the time I decided to just build it myself. What happened was that I found that I truly enjoyed writing the code and creating features more than trying to run a startup or sitting in an office seeing patients as a family doctor.
Since then I have grown quite a bit and I am currently working as a freelance web developer. I too am taking the freecodecamp journey, mainly to get the certifications, round out my knowledge and make the move towards working on more complex projects and earning more.
Medicine and web development are not worlds apart as many people think. Both require that you are able to learn lots of information and put it into practice while solving complex problems as a team member utilizing good communication skills to ensure that those you are working with and for understand what is happening and are constantly receiving value. They also both require that you keep up to date with a rapidly changing field as a continuous learner.
Life is a journey and we are defined by who we are, not what we do.
God speed my brother.
P.S. Having a supportive, understanding wife who is willing to stand by you through the trenches is also a huge plus.