Valid feature name: alphanumeric plus hyphens (spec Assumption 2).
bool isValidFeatureName(String name) => name.isNotEmpty && RegExp(r'^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$').hasMatch(name);