Microsoft has fixed a known issue breaking HTTP/2 localhost (127.0.0.1) connections and IIS websites after installing recent Windows security updates.
You can edit the hosts file with any text editor. There are a variety available, but both Windows 10 and 11 come with Notepad ...