Minecraft data components on custom items are available through ItemsAdderAdditions.
Add a components section under your item definition and run /iazip. IAA applies the components at pack-generation time via the ItemsAdder item modifier hook.
items:
my_item:
components:
rarity: RARE
use_cooldown:
cooldown: 1.5
Check the full documentation here.
