how to transfer value from scoreboard to item name

Im trying to change item name in the chest dynamic, depending on the player's scoreboard value, ive tried using [execute run data modify block 648 92 392 Items[0].components.minecraft:custom_name set from entity @p SelectedItem.components.minecraft:custom_name] but i dont know what must be instead [...set from entity @p SelectedItem.components.minecraft:custom_name]

Continue to help post