You are not going to like this answer:
The Get files uses basic command prompts (which is the same as the search bar in the upper right corner of a Windows Explorer box). Everything I read says that .### or some equivalent isn't an option. There is just * (for any number of characters before or after and ?.
Get files *.??? (this will pull all files with numbers, letters, or combos of both, but at least it will limit to those with extensions.
For each %CurrentItem% in %Files%
Convert %CurrentItem.Extension% to Number; save as %ExtensionTest%
On Error - Go to Label "SkipFile"
If %ExtensionTest% > 0
'do whatever you need to with the file
End (if)
Label: SkipFile
End (for each)
I think this is your best bet given that you can't just filter for .###; it should skip the unneeded files very quickly.
Another option would be creating a new list, do the first part of the logic through the whole list and adding files you want to do to a new list, then just running a for each on the new list:
If %ExtensionTest% > 0
'add %CurrentItem% to %NewList%
End (if)
'then just for each on %NewList% since you've already validated all these file extensions.
Good luck!