public static string ValidateDatasetName(string datasetName) { if (!Regex.IsMatch(datasetName, DATASET_NAME_PATTERN)) { throw new ArgumentException("Invalid dataset name"); } return datasetName; }