If the brake lamps on the trailer worked normally, we can presume that your brake lamp switch isn't AFU.
It's possible that you could have lost both filaments at the same time - have you "tested by substitution?" Or used an ohmmeter to test? A break in the filament isn't always visible to the naked eye.
Also, check/clean the bulb sockets (they can get crudded up,) and make sure that the connexions are sound (the main front-to-back lighting harness runs down the driver's side doorsill. It starts right around the underdash fuse panel, and ends behind the driver's side cargo trim liner. The rear cross-body harness, I believe, runs overtop of the hatch opening.)