On the Makita cordless drills, is the issue actually the “switch”, or could the issue be dome sort of flaw in the electrical design, which causes the directional switch, similar to how a microwave turntable may turn different directions each time you use it?
Older corded power tools, and early cordless tools used fairly simple switches, which were either off/on, and sometimes had variable speeds controlled by depressing the trigger more or less, or with a dial that limited this travel, sometimes with a reversing switch built into the trigger switch.
With those components, a number of manufacturers routinely made nearly identical switches, which could likely be interchanged deoending on region. (Eton in the USA was a huge manufacturer of these, and Marquardt in Germany).
If the issue is simply the actual switch, and it’s one of the “standardized” designs, then replacing the switch would likely be a possible fix, similar to replacing a crappy drill chuck, or short power cord.
If the issue is the actual electronics, then there is no easy fix, unless you can reverse engineer the problem, like people occasionally do with computer issues.
Dewalt isn’t a “cheap” power tool brand, but it’s also not Festool, and if a tool otherwise works fine, and you like the battery system, it might actually be worth checking if the issue is simply a cheap switch.