valid_different_codes <- all_valid_nuts_codes %>%
dplyr::filter_at( vars(tidyselect::all_of(geo_var)), ## should be changed with accross
dplyr::all_vars(. %in% different_codes)) %>% ## and replacing . with rlang's .data pronoun
mutate ( years = as.numeric(gsub("code_", "" , .data$nuts )) )