Frontier says the gate agent rejected the mask because it was a neck gaiter and that it had nothing to do with the flag. They do allow neck gaiters, but the policy had changed a lot and they claim the gate agent was confused.
Screenshot of their reply: