Though registry protection is something that Microsoft has worked towards over time as they tighten and limit access to various portions of the operating system with newer versions, as already mentioned that's not something that's directly supported within the 'Classic' version of Windows as Microsoft calls it.
However, as Microsoft was preparing for the major redesign of Windows 10, they initially created a stripped-down version that contained only the most important portions of the operating system that would need to exist in order for it to work on any system. This later came to be known as Windows Core OS (WCOS), which was at the time used to create the much more lean and secure version called S Mode, which differentiates it from the legacy 'Classic' Mode I mentioned above that many consumers still prefer because that still runs many old legacy applications that even the current Windows 11 S Mode won't.
What Is Windows 10 or Windows 11 in S Mode?
Turns out that one of the key security items that stripping down Windows removed was the ability to run the RegEdit.exe app, while external Exe files aren't even allowed to load on the system by normal means, precluding the ability to either modify the registry or download 3rd-party tools that might execute to do that, or for that matter, any executable malware at all. In fact, the only way to install apps is via the Microsoft Store, so that allows Microsoft to vet the developers and test the apps before they're released to the world, listening the possibility they might contain malicious code.
That article mentions a few other things that S Mode won't allow in the paragraph below, most of which are more commonly used by developers rather than your typical consumer or business user, which are the relatively dangerous apps and tools that are what truly put Windows at risk from malicious actors.
"Windows 10 in S Mode can't use command-line shells like PowerShell, Command Prompt, or Bash, either. Various other developer tools are also off limits. You don't have direct access to the Windows Registry via the Registry Editor, either."
Based on what you've learned in this thread, you should easily see why the optional S Mode that must be initially installed on a device by the manufacturer and can't be reinstalled if its ever exited in favor of the legacy 'Classic' version instead.
As a past network administrator and security professional, I personally chose a Microsoft Surface Go tablet that runs Windows 10 in S Mode that I'm using to type this post, precisely because I knew there was no better way to secure my device than to remove all of that extraneous, insecure garbage I really didn't need for the simple and lightweight tablet I wanted for basic apps like the Edge browser and a tiny handful of others needed for travel.
I never worry about malware and in fact the version of Windows Defender the device contains is so simple it doesn't even include the ability to manually scan, since there's really almost nothing that needs to be scanned, because legacy Win32 apps can't be downloaded or run, though as I understand it, Windows 11 may allow some of the more modern versions of these apps to install from the Microsoft Store only.
Rob