24w13a how to get the custom_model_data from an item a player is holding

I'm just getting into datapacks and this is my first time making one, so bear with me I'm also on the new snapshot so it's been harder to find examples online which is why I'm asking here (wanted to use some of the new features) I'm trying to run a specfic function when a player uses a custom item I got most of a tutorial I'm using working in the new snapshot but I'm not sure how to check if the held item has the correct custom_model_data with the new component stuff the command i got so far is execute store result score #isBanana fruitful_trees.temp run data get entity @s SelectedItem.minecraft:custom_model_data but I have no idea what the format for getting custom_model_data is with the new system and haven't been able to find anything that works
Continue to help post