Fix js/RegExp from throwing an error for `segment-regex-group` method