The separator between different parts of a chord name can be set to any markup.
\version "2.24.0" \chords { c:7sus4 \set chordNameSeparator = \markup { \typewriter | } c:7sus4 }