I did the same in 2022 and I managed to rewire my brain to switch from AZERTY to QWERTY. I used typingclub.com and practiced 20 minutes each day for a couple of months. Enough to get the good habits in muscle memory.
For me, what worked was switching to a new layout (QWERTY -> Colemak) which made looking down entirely useless. Tape a printout of the new layout to the top of your monitor for the first few days until you've got it, no matter how slowly you're typing, then go cold turkey. Some time later I went back to QWERTY in the office and was able to pick up touch-typing that layout without much thought or trouble; now I can jump back and forth between the two. Colemak feels a lot more ergonomic, too, as an added benefit.
I used [0] every night for 1 hour, it’s a website that’s going to build your muscle memory by small steps. If you commit to it you’ll get pretty good in a month, for a friend of mine it took even less than that!