The confusing bit is that there are different types. Regular
pectin (high-methoxyl, if we’re being technical) needs loads of sugar: usually a 1:1 fruit-to-sugar ratio, sometimes more. Low-methoxyl
pectin needs calcium instead of massive amounts of sugar, which is why it shows up in reduced-sugar or diabetic-friendly recipes. They’re not interchangeable. If you use low-methoxyl
pectin in a standard jam recipe with all that sugar, it won’t set properly. If you use regular
pectin in a low-sugar recipe, same problem. The packaging should tell you which type you’ve got, but if it doesn’t specify, it’s almost certainly the high-methoxyl kind.