Thanks for your research.
Any ideas on how to fix it? I would change the file itself, but /gnu/store is read-only.

пт, 17 дек. 2021 г. в 00:50, Maxime Devos <maximedevos@telenet.be>:
Grigory Shepelev schreef op vr 17-12-2021 om 00:12 [+0300]:
> Extended research. Lead to
>
> ERROR: In procedure primitive-load:
> In procedure scm_lreadr: /gnu/store/l375q7zi0k894a03xdfsq8qsm5nh2m97-
> module-import/guix/build/utils.scm:822:1: illegal character in escape
> sequence: #\return
>
> Possibly related to https://www.mail-archive.com/help-
> guix@gnu.org/msg12265.html

Here's a minimal reproducer:

Run the following in a REPL:
(call-with-input-string "\"Hello\\\rcarriage return!\"" read).

Alternatively, run guile -l c.scm on the attached file.

In both cases, you'll get
> invalid character in escape sequence: #\return
> > >

Greetings,
Maxime