Oh, I messed up, sry…
#align(right, title + context counter(page).display(" | 1 "))
should work. “#align(right, context counter(page).display(” | 1 ") " outputs " | " followed by the number and the title is not part of the pattern of the display function.
I changed the order (title to the left) and didn’t check again if it works