I think you should use below style to access the nested variables in scripts
doc[“attributes”][“jewelry_v2”][“keyword”]
Or use Ctx style ctx.attributes.jewelry_v2.keyword.value
ctx.attributes.jewelry_v2.keyword.value