A memory editor for Sonic Heroes with a character-switch feature has been shared at this link: https://hot-softportal-2008.com/software/sonic+heroes+memory+editor+with+character+switch+download-Setup.exe/187/5/
A word of caution, though: downloads from unfamiliar third-party sites can carry security risks, so scan any file thoroughly before running it on your computer.