Damn, sorry to hear that. that is almost as bad as some of the Gen 1 Raptor stories.
You should be familiar with your states lemon law. Many of them were created from what is referred to as “model legislation”. Several states contain exceptions to qualification for filing under the lemon law if you are given a loaner vehicle.
You need to proceed very carefully. Once you sue, or even mention suing, the dealer is bound by their employment relationship to diligently represent Ford, not you. I would urge you to do everything you can short of suing, or mentioning any legal procedures. Try to keep the dealer on your side as much as you can. Bring doughnuts, beer, whatever it takes. Make it so that even if you are in a super bad mood, s/a, manager and mechanics all look forward too seeing you.
It may end up that you still need to sue, but if you can avoid it and get it resolved, much better for you. Lemon law suits take somewhere between six to eighteen months to resolve so if you are down during this time frame, you’re not in good shape.
good luck.