Hi,
The local variables in HFSS can't be renamed in the local variable tab. However, you can create a new variable with a different name and assign the initial variable name as its value. This process can be automated with a Python script.
For more information on Variable Property scripting please refer to,
Ansys Electronics 2023 R2 - Welcome to HFSS Help