def METHOD_NAME(cls, value):
    """Validates the regular expression"""
    if value is None:
        return value
    if not re.match(r"^image_\d{1,3}$", value ,re.IGNORECASE):
        raise ValueError(r"must validate the regular expression /^image_\d{1,3}$/i")
    return value