I'm not sure we need a UI element for this. We should be able to use [Uuid::isValid()](https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Component%21Uuid%21Uuid.php/function/Uuid%3A%3AisValid/8) on the $form['entity'] value to detect if a UUID was provided or not.