If you do a search for "Hood Latch" in the forums, there are quite a few examples of wonky alarms going off. It seems there may be an issue with the alignment of the hood latch, and or the latch itself. Theres alot of examples, so read through them and see if one matches what you encountered. Fixes have been as easy as a latch/hood alignment, to replacing the hood latch, but save the alert you got on FordPass so you can show the service writer if you take it in.
22 BB 4dr SAS 2.7 Mid Pkg Hot Pepper Red, Delivered 8/25
Previous 2019 F150 Ruby Red SCrew 3.5 Eco, XLT Sport/FX4 302A