docs: def split_by_extensions(filename):
          """ Splits the filename string by the extension of the file
          """
          parts = filename.split('.')
          idx = len(parts) - 1
          while FileFormat.is_file_format(parts[idx]):
              parts[idx] = FileFormat(parts[idx])
              idx -= 1
          return ['.'.join(parts[:idx + 1])] + parts[idx + 1:]