Converting file matcher config from string to regex pattern