How to make a Minecraft Datapack tutorial

I am currently using java version 1.21.5 and following the instructions but when I'm in my single player world and try to use the function based on the tutorial, it does not auto complete and says unknown function when I manually type it in. I have done the command /reload, still nothing works.
Continue to help post