From my understanding, TSA security isn't customs, so it isn't a constitution suspended zone.
Flying is not a constitutionally protected activity... see, for example, the legality of un-appealable no-fly lists.
https://www.theguardian.com/world/2018/mar/12/tsa-surveillan...
So my guess is that they aren’t supposed to do this, and if a judge ever got the case, the TSA would be in lots of trouble if found doing it.