Thanks for the solution, it worked well.
I had the same when migrating from dev server to a live site.
I presume it’s some internal cache in Yoast that you have to reset. It should really be a feature of the main plugin (or have a button to make it clear).