NBT data

im currently trying to create a data pack that gives tamed animals and listed animals invincibility so they cant die. however, the tag function doesnt work lol and i dont know what to put. tag @e[nbt={OwnerUUID:""}] add invincible VS code says it has 1 problem in this file and also 1 problem in the pack.mcmeta file to, which puzzles me { "pack": { "description": "Applies resistance to tamed and listed animals", "pack_format": 61 } } is what i have
Continue to help post