Apparently, you can create multiline text replacements on macOS:

It’s possible to use multiline text replacements on Mac, iPhone, and iPad, though you would need to use a Mac to create these text replacements.

On the Mac:

  1. Open System Preferences. Click on the “Keyboard” pane then click on the “Text” tab.
  2. Click the “+” button to add a new text replacement.
  3. Enter the shortcut text in the Replace column.
  4. Paste some multi-line/multi-paragraph text into the With column.

This text replacement syncs across all of your device using iCloud.