Good question — for SMS sessions, {{customer.number}} isn’t always populated the same way as voice calls. SMS usually comes through as the from number in the message payload, not the call customer object.
I’d recommend pulling the sender number directly from the SMS event (e.g. from / sender) and using that for your contact lookup instead. Happy to help you wire this up properly if you want.