I know I can do the following
$customerId = 1;
$customer = $this->customerRepositoryInterface->getById($customerId);
$code = $customer->getCustomAttribute('attribute_code')->getValue();
But as the attribute is a type of "select" and not "text", it gives me the ID as the value and not the actual label
Therefore how do I get the label/frontend name of the option instead of the ID