Idiomatic way to embed three double quotes in a triple quoted / multiline string

There doesn’t seem to be a mechanism to embed """ in a triple-quoted string that doesn’t involve interpolation. I.e.:

val tq = "\"\"\""
val s = """
This string needs to contain triple quotes, like this: $tq
"""

Obviously, this works, but feels a little awkward. It’s even more awkward if you’re writing a regex as a triple quoted string, but """ is part of the thing you want to match (work around: "{3} in the regex).

Anyone got anything cleaner?

Multiline strings don’t support escaping (by design), so interpolation is going to be the only option.

Arguably only slightly less cumbersome in some cases (and less indirection), you could avoid the val (if you’re not going to use it a bunch of times) like so:

val s = """
    This string needs to contain triple quotes, like this: ${"\"\"\""}
"""