SPM regressions on 5.2 with Sourcery

The fact that it does not continue to work with the tools version still set to 5.0 looks like a bug.

The error description with tools version 5.2 is accurate. It is due to SE‐0226.

You could try working around it by adjusting the package instance for 5.2 at the bottom of the manifest inside #if swift(>=5.2) and/or #if compiler(>=5.2).