I'm adding a new enchantment named cleverness and idk why but my requirements aren't working

Hi, I'm TheArthemys and I'm making a datapack for me and my friend, I want to add this enchantment in 1.21 but it wouldn't let me open my world when adding those requirements. why is that? PS: first time making enchantments

          "requirements": {
            "condition": "minecraft:entity_properties",
            "entity": "attacker",
            "predicate": {
              "slots": {
                "weapon.mainhand": {
                  "components": {
                    "minecraft:enchantments": {
                      "levels": {
                        "worst_weapons:cleverness": 1
                      }
                    }
                  }
                }
              }
            }
          }```
Continue to help post