Formats a string by replacing placeholders with provided arguments. This function utilizes the vsprintf method from
the format library to apply sprintf-style formatting to the input string using the provided arguments. The
arguments can be a single string or an array of strings, which are validated and converted to an array if necessary
using a Zod schema.
Formats a string by replacing placeholders with provided arguments. This function utilizes the
vsprintfmethod from theformatlibrary to apply sprintf-style formatting to the input string using the provided arguments. The arguments can be a single string or an array of strings, which are validated and converted to an array if necessary using a Zod schema.