Tag command inside command block

Hi there,

I’m trying to do some things with command blocks, and want to tag a arrow from a command block, but for some reason, it does not tag the arrow…
execute as @a[scores={slingshots=1..},nbt={SelectedItem:{id:"minecraft:crossbow",tag:{musket:1b}}}] at @s run tag @e[type=arrow,sort=nearest,limit=1] add bullet

Is this paper specific, since it works in single player…

Thnx in advance