function getAllRegExpLiterals() {
      return tokens.filter((token) => token.type === 'RegularExpression')
    }
Retrieves an array containing all RegExp literals in the source code.

@returns {Token[]} An array of RegExp literal nodes.