mutate with quo in a function

Trying to do something like this:

my_function <- function(dat){
dat <- dat %>%
    mutate(group_vars(dat) = paste0(group_vars(dat), value2))
}

And what is happening?
We really need more code and some data.

See FAQ: How to do a minimal reproducible example ( reprex ) for beginners