TODO: we may need to transform the `QRegularExpression` usage to the `RegExp` in JS.
v8.11.1 Julian Kühnel