This is generally expected and by design to ensure all HTML is always properly escaped. Some phrases in some places may support HTML others may not. This is one of those situations where HTML is not supported.
There’s other ways to achieve what you want to do. Generally trying to inject styling into a phrase is not an approach we would recommend.