How to format a drive for networked Time Machine access

In macOS Big Sur, Time Machine added support for backups onto APFS-formatted volumes (the filesystem that Apple introduced a few releases ago). But Apple omitted…