I couldn't find the hood switch on the original Ford diagrams, but it's here on an aftermarket diagram. The wire isn't shorted, (grounded). That's what it's supposed to be when the hood is closed, so a grounded wire would make the warning light turn off. What would cause this is a break in the wire, (or a defective switch, but you replaced that already). To be safe, I added the drawing showing the location of the hood switch. It's right behind the front edge of the driver's head light.
If the warning light turns off when you push the switch by hand, that switch may be one of the adjustable styles and is out of adjustment. If you post a photo of it, I might recognize how to adjust it.
The next step is to unplug the connector from the switch, then ground the blue / orange wire. If that makes the light go off, the ground wire likely has a break in it. Let me know what you find up to this point, then we'll figure out where to go next.
Images (Click to make bigger)
Friday, December 12th, 2025 AT 6:13 PM