As far as I know the only way to flag an item is to use the itemtag.with_items using either the give command and drop command.
I want to flag an item the player is currently holding, but the flag command only works with entities / server. Would it be possible to add a flag command for itemtag?