The regular expression used to route a message is applied to a portion of the message itself not the file name. Unless the file type is embedded in the message somewhere I don’t see how you would use regular expression wildcard routing.
You could use a TRXID proc and extract the file name from metadata and route it that way