There was a move to enshrine a legal right to opt out of TSA facial recognition in the recent FAA Reauthorization bill. The amendment didn’t make it in – killed by TSA lobbying.
TSA’s current policy is to allow passenger opt out, but wanted this left to their own discretion rather than requiring them to honor it.