Fix regex pattern matching for multiline CSS selectors