Trying to decode that with Cyberchef did not result in any readable text, despite what I expected. The output looked like this:
Since this really looks like a malformed qr code, I just resized the text editor until it was the right format. Then I could use my phone to read the qr code, which contained the flag.