Why won't my function run?

I have an mcfunction in my datapack, but when I use the /function command, it doesn't even show up, and if I run it it comes back as an error. Here are some screenshots (Trying to run magnetic pull)
Continue to help post