Fix regex in _QS_PATTERN