@shirshak
ES2 was the end of life a long time back (in 2018), https://helpx.adobe.com/in/support/programs/eol-matrix.html
AEM Forms 6.5 JEE is the latest supported version and should be compatible with the legacy code, but you could still do a POC to validate.
For quotation, you should contact you...