How to implement $sformatf on register models

In reply to Sv-hustler:

The get_block_by_name() returns a uvm_reg_block handle. You will need to $cast it to your specific block type to be able to access the registers.