With CarLaTeX's comment I was able to find the solution.
escapechar within your style definition using the
\lstdefinestyle command. For example,
Then, use the defined style with the
The combination of characters between
@s will turn into a backtick.
The solution above looks right on the paper but the characters aren't right when copied from the document. A solution that allows copying is to define a backtick character
and use it like this