It's not a good idea to replace vanilla recipes or other vanilla datapack data by default in mods.
What do you think happens when 2 different mods try to do this.
Anyway, make sure you specify a dependecy on the forge mod in your mods.toml and that it says it should be loaded AFTER it.
That way your mod will be placed above forge in the datapacks when creating new worlds.
Where obviously you need to replace the $x bits with the real values.