So, in your regex:
let reRegex = /(\d+)(\s)\1\2/g;
You have two capture groups, yes.
\1 would refer to the
(\d+) value, and
\2 refers to the
(\s). Which is great, except that you’re now looking for a number, followed by a space, followed by the same number, followed by a space… is something missing?