The containing class is available as SQL\ScalarFormat in the www repository.
SQL\ScalarFormat
public function format_s( ?string $string, ): string;
?string $string
string