Improve the linter to not re-interpolate

Previously, the regex didn't account for close brackets inside \code{}s,
and they were added by the linter itself, so when the linter was run a
second time, it would re-interpolate and mess everything up. This fixes
that, through the use of a very complicated regex.

Auditors: john, csilvers