Enchantment 255 max level not working [1.21.4]

im making a datapack that sets the enchant level to 255 for most enchants, and for some reason only a select few are working so far ive only done a few and the only ones that are working is sharpness and bane, everything isnt working, im using https://misode.github.io/enchantment/?version=1.21.4 for the json format and changing the "max level" has 1.21.4 changed something about enchantments in datapacks??
Continue to help post