UVM Reg Model & String Issue

The variable reg_name is a string and only contains the methods appropriate for a string. You can’t use a string as another type of variable.

You will need to reference the register directly, or if you want to be flexible, you can use a string-based lookup to get the register.