Something in grep/sed/rpm is broken since today or yesterday.
On July 24th, a %global definition in a spec file still worked.
It still works with a local Mock build for Rawhide/F35.
It fails in koji Rawhide:
https://kojipkgs.fedoraproject.org//work/tasks/3604/72743604/build.log