Hello.
We got same issue ourselves, that’s why some time ago I worked on upgrading Script Engine to Nodejs22.
I’ve released it to production just now. Editor on UI is not yet familiar with some recent Nodejs apis (like Array.flatMap for example), so you may see them underlined with red. But it should work okay.