Tooltip texts do not support nickname tokens

The method tooltips.setTooltipText(Entity<?> entity, String text) does not replace nickname tokens (e.g. “$0”) by player nicknames in the shown tooltip text.

Is that on purpose or a bug? How else can I access the nickname of a player and use it in a tooltip?