Return the labels of the sub-tasks. Every label only appears once.
Create and configure a Smart field using this expression in General parsing mode:
%{distinct(fieldValue(%{issue.labels}, subtasks()))}
Return the labels of the sub-tasks.