u(SQL`FORMAT,%0,%1,%2,%3,%4,%5,%6,%7,%8,%9) => #-1 FUNCTION (REGEDITALLI) EXPECTS AT LEAST 3 ARGUMENTS BUT GOT 2
This is the issue. I am not sure what the fix would be here, looks like the updated code does not have the correct formatting in the SQL`FORMAT function call.