It could be that the key is incorrect.
Is this field that you are trying to validate a sub field of a repeater, flex or groups field?
Is this field a cloned field?
Try this
function custom_validate ($valid, $value, $field, $input_name) {
if (strpos($field['key'], 'field_64ad703e1fab1') !== false) {
return $field['key'];
}
return $valid;
}
add_filter ('acf/validate_value', 'custom_validate', 10, 4);