In the newest snapshot, the "minecraft:component" select property was introduced on item models. It is able to detect components on items, but not "minecraft:enchantments".
How to reproduce
Download the resource pack "item_model_bug_report" in attachements.
Open/Create a world.
Drag and drop the resource pack downloaded in the Resource Packs window.
Run the command:
/give @s minecraft:wooden_sword[minecraft:enchantments={levels:{"minecraft:sharpness":1}}]
Expected result
The wooden sword given by the command should have the "minecraft:item/apple" model, as the enchantment condition of the item model is met.
Observed result
The wooden sword given by the command appears as a missing model with the Minecraft Launcher log error:
Couldn't parse item model 'minecraft:wooden_sword' from pack 'file/item_model_bug_report.zip': Can't access registry ResourceKey[minecraft:root / minecraft:enchantment] missed input: {"minecraft:sharpness":1}
Can confirm.