Text this: Achieving flexible fairness metrics in federated medical imaging