function sanitizeName(name) {
  return name.replace(/[^a-zA-Z0-9-_]/g, '_')
}
Sanitizes a name by replacing invalid characters with underscores.
@param {string} name - The name to sanitize.
@returns {string} - The sanitized name.