My computers are 6 and 8 years old and may not be able to run Win 11 when it becomes available. There may be a fix before EOL in 2023, but if not they are old enough to retire gracefully(unlike their predecessors which died with their boots on).
The fix is simple. You just need to reset all network settings, 9to5Mac noted. This can be done by going to Settings > General > Reset > Reset Network Settings. Doing this resets all saved wifi networks on your iPhone, consequently erasing the cursed network name from the device’s memory. After that, your phone should be able to connect to wifi normally once more.