If you are already using Alfred[1] (with PowerPack), then snippets are your friend. Combine this with macOS's own Text Replacement[2], can cover most needs. You add up your snippets as you go along and sync/backup it so you won't have to re-do on each install/upgrade.
I also found out that it is easier to use "," as a deliminator as there is no way I will type a normal English word with a comma then a character but there are lots of "." (period) and then words (most file extension names).
I used TextExpander[3] for a very long time until they decided to move to a subscription model.
2. https://support.apple.com/en-in/guide/mac-help/mh35735/mac