Item modify item_model with macros

I want to modify the item model of the item the player is holding in weapon.mainhand with /item modify but I can't figure it out, also i need to set the model to a macro like $(model) or something because i have multiple item models. I can do this with /give item[item_model="$(macro)"] but idk how to do this with item modify

Continue to help post