Typically, you'd just `using namespace std` on top of you file. Afterwards calls to `format` have the exact same length as `printf`.
using fmt = std::format
and then use fmt(...) as the function call.... at least that the current advice AIUI.
And extensive formatting and/or output should be minimised outside main(), imho.