If you want the regex to do all the checks for you, a more rigorous way to do this:
/_(en|ru|cy)\.(jpeg|jpg|mp4|png|gif)$/
In this way, you provide all the restrictions that you talked about. In addition, there is no need for the g lobal flag, since we are only interested in the end of the line (which is why I anchored EOL $ ). However, you can add the i gnore flag flag if there is the possibility of a mixed case in file names.
source share