Batch rename material parameters with prepend / append

Hello, I tend to make material functions that I re-use a lot, and they tend to have many inputs, which I plug into parameter nodes. If I copy these parameter nodes for another function, I add them to a new category, but their names remain the same so there are no new parameters created in my material instance. What is the workflow to batch rename these, preferably using the category name as a prefix/suffix?

Also what is the correct category / tag to use for questions regarding the material editor?