How to validate only if value present in form element if there is class for form and validators are in form class
Add the parameter allowEmpty to the validator, ex:
allowEmpty
<?php $element->addValidator(new Regex([ 'allowEmpty' => TRUE, 'pattern' => '/^\d{2}:\d{2}$/' ]));