Filtering based on model data

I have the following command

execute as @a if items entity @s container.* minecraft:iron_nugget at @s run say Success

But rather than checking for people with an iron nugget I want to check for people with an iron nugget with a certain item_model how can I do this?

I had an old datapack with something similar where I could just do this minecraft:iron_nugget[custom_model_data=1] but not sure how to do the same when I am using item_model instead of custom model data

Continue to help post