I think tap-to-pay terminals that the server carries now eliminate more of this. but occasionally I have to give my card over.
On the other hand, stolen credit cards were kept by the restaurant and they got a reward.
Nowadays I don't think there is ANY checking of whose card is being used.