The way people picker searches for user is using the claim provider and the claims which have been configured on the WSFED object on policy server.
OOB for sharepoint we create the legacy federation object. This I don't think supports expressions in attribute.
If we create a WSFED partnership federation object for SharePoint, there is an opportunity to use expression in attribute (claims being passed from SiteMinder). This may help here.