Resolve param name
static String? resolveParamName(String segment) { return RegExp('^\\[([a-zA-Z0-9_]+)\\]\$').firstMatch(segment)?.group(1); }