[v6.x backport] test: fix RegExp nits
Can't show this merge request because the source branch github/fork/vsemozhetbyt/backport-13770-to-v6.x is missing from project rodrigo-test/test-group-nodejs/node. Close this merge request or update the source branch.