I've been trying to get the text from the lore of the item in the main hand and store it as a score value:
execute as @p store result score @s kC run data get entity @s SelectedItem.tag.display.Lore ...
But I have no idea how to continue the path to get the text as an output