[Fix #8466] Fix a false positive for `Lint/UriRegexp` by koic · Pull Request #8467 · rubocop/rubocop

Fixes #8466. This PR fixes a false positive for Lint/UriRegexp when using regexp method without receiver. Before submitting the PR make sure the following are checked: Wrote good commit messages...