Ghost doesn’t expect to find special regex characters like | . Well, it does expect them, but it doesn’t treat them like plan characters. Try preceding special characters with \, so like this:
I also added a ^, which tells Ghost that’s the start of the path, which can be helpful for preventing redirect loops.
Note the spacing - yaml files are fussy about it!
I’m using json extension. I have tried your option but when trying to upload the redirects.json file into “Labs” I receive error: “, cannot fetch redirects”
Hmm. Not at my computer to test, but it may be that you need all regex format, like in this example: Implementing redirects in Ghost (Scroll down a ways.)