SEOmatic not merging fields from a related entry
Make sure you're not doing this inside of a {% block %} or you will run into Twig Processing Order / Scoping issues.

There are some good examples of doing that here: Dynamic Twig SEO Meta