You can not as the color is not a string here but the object itself is already “dictionary” like in a sense. You can indeed access a string by doing
orgPBEMaterial.metadata?.gltf?.extras.TextureAmbientOcclusion
or
orgPBEMaterial.metadata?.gltf?.extras["TextureAmbientOcclusion"]
Accessing newColor in the same way would return an array