You can try disconnecting the ajar switch from the latch.
Here is what it looks like. These issue with lights staying on are a plauge across most models.
If you are comfortable taking off the door panel, you could unplug the connector going to the latch. It's usually only two wires to sense door ajar. On Other vehicles it also contains circuits to activates the lock actuators.
If you can remove the latch, you could clean it up on the bench.
The second most possible cause is chaffing wires in door harness boot.
https://www.tascaparts.com/oem-part...9MjAwNSZ0PWVkZGllLWJhdWVyJmU9NS00bC12OC1nYXM=
According to the parts site Tasca, the latch is the same across
Expedition, Navigator. Sable, Taurus. Thunderbird. Left. Right. E150-350 vans.
You may be able to remove the ajar switch from the bottom of the assembly w/o removing the latch.
Switch here.
https://www.tascaparts.com/oem-part...5PTIwMDUmdD1lZGRpZS1iYXVlciZlPTUtNGwtdjgtZ2Fz
Definitely test it and diagnose the old one before just replacing it.
The same switch is used across the following models, years unknown Expedition, Navigator. Five Hundred, Montego. Freestar, Monterey. Taurus, Sable. Freestyle. Taurus X. F150. Rear. Left. Front doors. F250, f350 super duty. Standard cab, crew cab.
Fordtechmakuloco did a video.
Sent from my SM-N975U using Tapatalk