Since we already use regex for the main part it also make sense (from the consistency perspective) to also use it to validate the length of the  label and whole hostname.

In any case, I'm not too opinionated.