Using /execute with the new Components.

hi im having a lot of frustrating trouble with this new component thing so heres my question, I've already figured out the /summon and /give thing with the component tags but /execute still wont work execute as @e[type=item,nbt={Item:{id:"minecraft:diamond_sword",Count:1b}}] at @s if block ~ ~-1 ~ anvil unless entity @s[type=item,nbt={Item:{components:{"minecraft:lore":['{"color":"gray","italic":false,"text":"Windbreaker"}']}}}] if entity @e[type=item,nbt={Item:{id:"minecraft:charcoal",components:{"minecraft:lore":['{"color":"gray","italic":false,"text":"Windbreaker"}'],"minecraft:custom_model_data":1}}},distance=0..0.5] run give @p diamond_sword[lore=['[{"text":"Windbreaker","italic":false,"color":"gray"}]'],enchantment_glint_override=1b] 1 execute as @e[type=item,nbt={Item:{id:"minecraft:diamond_sword",Count:1b}}] at @s if block ~ ~-1 ~ anvil unless entity @s[type=item,nbt={Item:{components:{"minecraft:lore":['{"color":"gray","italic":false,"text":"Windbreaker"}']}}}] if entity @e[type=item,nbt={Item:{id:"minecraft:charcoal",components:{"minecraft:lore":['{"color":"gray","italic":false,"text":"Windbreaker"}'],"minecraft:custom_model_data":1}}},distance=0..0.5] run function atmospheric:craft/groundenchant those command is suppose to "enchant" a diamond sword with Windbreaker by giving you a new one and deleting the enchantment book and deleting the orignal diamond sword but it wont work plz help
Continue to help post