People really are writing tokens with custom transfer functions that do this sort of thing. The main use case seems to be allowing artists to collect fees on non-first sales of an NFT. This whole genre of program is a bit suspect to me though, because if you had a trusted counterparty or an escrow you could just sell them the private key for the account containing the NFT, and they could conduct a "sale" for $1 to their own wallet.