Add regular expressions support into STATIC_PATHS.