fn collect_vars_from_operator(
    input_chars: &mut Peekable<Chars<'_>>,
    operator: &str,
) -> Result<Vec<String>, String>