topology: pre-processor: fix regular expression flags