Get role label instead of "database value"
You can try like below:

function MYMODULE_field_template_preprocess_default_variables_alter(&amp;$variables) {
  $variables['user_roles'] = user_role_names();
}


and in .twig file you can use as {{user_roles['ROLE_NAME']}}