You can edit the hosts file with any text editor. There are a variety available, but both Windows 10 and 11 come with Notepad ...
Starting at the end of July, Microsoft has begun detecting HOSTS files that block Windows 10 telemetry servers as a 'Severe' security risk. The HOSTS file is a text file located at C:\Windows\system32 ...