Bohdan Yefimenko

Results 2 issues of Bohdan Yefimenko

As [PR](https://github.com/TanStack/query/pull/7642) is a bit stuck, this PR implements the same, with respect to the comments left in the first PR. Fix https://github.com/TanStack/query/issues/6954

package: query-core

Initially, issue was described [here](https://github.com/jsx-eslint/eslint-plugin-react/issues/3686), but it was closed by [another PR](https://github.com/jsx-eslint/eslint-plugin-react/pull/3774) (although this PR implements different case). So, this PR just reimplements `Regex` implementation with `globs` as was suggested...