Cannot get user’s ACF data when using a template part in a WP_User_Query

You need to pass the variables to the template using the 3rd parameter of get_template_part:

get_template_part( string $slug, string|null $name = null, array $args = array() ): void|false

https://developer.wordpress.org/reference/functions/get_template_part/

For example: https://developer.wordpress.org/reference/functions/get_template_part/#comment-4130

Note: This was added in WordPress v5.5

techhipbettruvabetnorabahisbahis forumueduedueduedusedueduseduedusedusedu