Copies and docstring styling
# What does this PR do?

This PR makes the `check_copies` script a little bit more resilient by making sure it applies the styling on the docstrings when making/checking the copies. This will fixe issues like the one encountered in #15079 