core[patch]: fix deprecation admonition in API ref (#28992)
Before:

After:
