Once again, the internet has all answers. Here is an article that explains the customs for many countries...
https://en.wikipedia.org/wiki/Maiden_and_married_names
I was going to mention Quebec based on some experiences watching hockey but didn’t know about the provincial law. “Gender equality.”