Coloring names with escape codes sounds like a John Carmack feature
CoD 2 used a modified Quake engine :) https://en.wikipedia.org/wiki/IW_(game_engine)
Makes sense since Call of Duty traces it's engine lineage to Quake 3.
Re:ANSI escape codes (2019)
by mattowen_uk on Wednesday February 03, 2021 @06:50AM
(#26012795)
Yup, Quake had something similar that allowed players to have fancy looking names in multiplayer games.
^1Red
Everything after the "^1" were red.
The game removed these color codes when it showed your name, but you could do ^^11Red to bypass that (it only removed color codes for one pass)