Problem with advancement criteria name

I want to execute this command execute if entity @a[advancements={bacaped:enchanting/all_the_netherite_tools={fortune sharpness netherite_axe=true}}] run advancement grant @a only bacaped:enchanting/all_the_netherite_tools fortune sharpness netherite_axe, but I can because minecraft can't parse such criteria name (fortune sharpness netherite_axe) inside @a seceletor, and I can't change because it is another datapack. Is there a way to execute it or check criteria differently.
Continue to help post