While reading Wikipedia, I noticed that [https://en.wikipedia.org/w/index.php?title=Cairns_Central&oldid=1220827175 Cairns Central] had a strange \$ in its table of contents
{F54006673}
I assumed it was a typo in the article wikitext so went to edit it to remove the backslash but found there was no blackslash in the wikitext just
==$60m Redevelopment Project==
There was no sign of any invisble characters or anything out of the ordinary. There was nothing to explain the backslash in the table of contents. I did a work-around by removing the price tag from the heading, but I cannot see what was wrong in the first place.
I experimented in various ways in https://en.wikipedia.org/wiki/User:Kerry_Raymond/dollar-bug but it seems any dollar sign in any place of the heading generates the backslash in the table of contents and that the following character is not the issue and you cannot escape it with backslash or another dollar sign.
What should have happened instead?:
Just put a dollar without a backslash
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Chrome is up to date
Version 125.0.6422.61 (Official Build) (64-bit)