Can’t you just parse the numbers/dates from the filenames, and filter on them?
An MWE, or at least a list of filenames, would be useful.