Can audio compression algorithms detect re-used / duplicate audio?

A little question I've been curious to.
Can modern audio compression algorithms detect re-used audio or loops?

It's pretty common for things such as video game soundtracks or certain music genres for instance to have the same part of a song loop over and over 2 - 4 times.

I suppose if a song has reverb or other things, it might be harder to compress but is two parts of a song are nearly identical frequency-wise, theoretically this could be compressed to almost half the size of an audio file, right?

I know some basic stuff about how MP3, FLAC, OGG Vorbis and Opus compression works but not a whole lot.

I'm also curious if there are more audio compression algorithms out there that are more efficient than the ones that we know and use because they're mainstream or encode/decode faster.