UniTweak is a Minecraft mod that adds CraftTweaker methods which can create recipes for other mods based on patterns instead of items.
It does this using the UniDict API.
UniTweak requires both CraftTweaker and UniDict. Currently supported mods are: Immersive Engineering, Embers Rekindled
See the wiki for methods and usage examples
Available on curseforge here: https://www.curseforge.com/minecraft/mc-mods/unitweak