Formerly email validation
Try find the regex string in https://regex101.com/ where you can define your pos and neg examples.

.*(?:(?!ru).).$ 

See https://stackoverflow.com/questions/16398471/regex-for-string-not-ending-with-given-suffix