Can I format the function call using $sformatf in systemverilog

In reply to yourcheers:

SystemVerilog is not an interpretive language—you cannot create statements from strings.

If you could explain in more detail what you are trying to accomplish there might be other approaches. See the XY Problem.