Inventory Changed Trigger with NBT Items

Hey there guys!

So I am pretty new with advancements and datapacks in general and am struggling to finish what I am trying to do.

Basically, I want a player to receive an advancement whenever they pick up a Netherite Sword which has the sword_of_anubis NBT Tag attached to it, I have written some code which I'll paste down below, but for some reason it's not popping whenever I pick up the sword and I'm unsure why.

{
    "__comment": "Made with TheDestruc7i0n's advancements generator: https://advancements.thedestruc7i0n.ca",
    "display": {
        "title": {
            "text": "This belongs in a Museum",
            "color": "aqua"
        },
        "description": {
            "text": "Collect the 'Sword of Anubis'",
            "color": "light_purple"
        },
        "icon": {
            "item": "minecraft:netherite_sword"
        },
        "frame": "task",
        "show_toast": true,
        "announce_to_chat": true,
        "hidden": false
    },
    "criteria": {
        "collectSwordOfAnubis": {
            "trigger": "minecraft:inventory_changed",
            "conditions": {
                "items": [
                    {
                        "item": "minecraft:netherite_sword",
                        "nbt": "{tag:{Tags:[\"sword_of_anubis\"]}}"
                    }
                ]
            }
        }
    },
    "parent": "fortunecraft:root"
}

Any help would be much appreciated thanks

Continue to help post