Fixing format regex

Removing the last ```|``` causes some formats to be concatenated accidentally