Upgraded dashboards with timeline_vis failing in dashboards 2.8.0

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

Describe the issue:
We had an old ODFE cluster which got upgraded first to opensearch:1 and now to opensearch 2.8.0.

But some particular dashboards now are failing with this error:
[timeline_vis] > Timeline request error: undefined Error: in cell #1: The module ‘/usr/share/opensearch-dashboards/node_modules/re2/build/Release/re2.node’ was compiled against a different Node.js version using NODE_MODULE_VERSION 83. This version of Node.js requires NODE_MODULE_VERSION 93. Please try re-compiling or re-installing the module (for instance, using npm rebuild or npm install).


Relevant Logs or Screenshots:

It’s actually an issue with regular expressions, I’ve opened a bug ticket on github: