Most of my library has one file per episode, so I forget this setting exists until a double episode shows up. Then the file name depends on a dropdown I never looked at.
It sits in Sonarr under Settings, Media Management, Episode Naming, next to the episode format. It only matters for a file that contains more than one episode. The Servarr wiki lists the options with an example for three episodes:
Extend S01E01-02-03
Duplicate S01E01.S01E02
Repeat S01E01E02E03
Scene S01E01-E02-E03
Range S01E01-03
Prefixed Range S01E01-E03
The wiki suggests Scene. The names differ only in punctuation, but they are not interchangeable: Range and Extend look alike at a glance and are different strings. Whatever you pick, choose it on purpose, because the name Sonarr writes has to be something your media server and your own eyes can read as two episodes.
One caveat: the new style applies to files Sonarr names from now on. Files already on disk keep their old name until you rename them, and Preview Rename on the series page shows what would change before you confirm.
Further reading: Sonarr settings, Multi-Episode Style (Servarr wiki)
Going deeper: Guide: link Prowlarr to Sonarr and Radarr once, and stop typing indexers into every app