minecraft can work really well for learning how tp program, when I was 9 that is how I started, unfortunately its been a long time since I took that course but if you are willing to do the research there should be a some for server programming and java modding at least that is what I took over 11 years ago at this point, and maybe javascript for gametest framework for bedrock edition. there is also minetest which is a little better for learning but isn't minecraft so is a little bit more annoying but lets you modify basically anything you want which is very fun. also a great way to learn boolean algebra/circuit design in minecraft/minetest, redstone can be used to make micro computers like calculators, fun and can be applicable to making games in minecraft which makes it more engaging as well. also the minecraft commands can be put into a mcfunction file as you can imagine this can be generated by outputting text to the file, this is great because you learn file io and a programming language and mostly he would be using math to generate things so teaches math, its limited but that is something he would find fun that is super easy and can be done in basically any language.
redstone/mcfunctions I personally like this approach on top of the course because it gives him something useful so should hopefully encourage him to play and program after he finishes lessons and etc...
what do you enjoy? whatever that is find a problem you want solved and try to solve that problem watch videos when you can and look up information but most likely there wont be any info on exactly what you want to do otherwise it probably already would have been done and you wouldn't want it fixed, if someone has done it before exactly then for educational purposes I would try to make it first then look at there solution afterward. for me when I did this I went down a parsing and reverse engineering rabbit hole, this helped me build confidence because regardless of how good the documentation is, regardless if someone else has done it before I can figure it out I know I dont need anyone to tell me how to solve the problem, then when I can find documentation on top of this skill the documentation becomes 10 times more useful. I cant guarantee this will help you as much as it did me, I did this for a long time before I started programming as the game I played in my spare time had very little documentation and I was forced to do the same process and just figure it out.