"Auto Complete String Parameter" plugin on Jenkins 2.426.2 throwing error "Failure evaluating expression : '{uid}' Object.toJSON is not a function"

when using
“Auto Complete String Parameter” plugin on Jenkins 2.426.2 seeing below error
Failure evaluating expression : ‘{uid}’ Object.toJSON is not a function

The plugin is no longer distributed due to multiple security vulnerabilities.

It fails because it still makes use of prototype.js library which was removed from Jenkins in the LTS you’re using