The top comments are correct: there is no way other than "brute force" or "spelling out" alternatives as there is no way to do math inside a regular expression.
Use any version, with capturing or non-capturing groups:
^(?:1,2|2,3|3,4|4,5|5,6)$
^(1,2|2,3|3,4|4,5|5,6)$
See regex proof.
EXPLANATION
--------------------------------------------------------------------------------
^ the beginning of the string
--------------------------------------------------------------------------------
(?: group, but do not capture:
--------------------------------------------------------------------------------
1,2 '1,2'
--------------------------------------------------------------------------------
| OR
--------------------------------------------------------------------------------
2,3 '2,3'
--------------------------------------------------------------------------------
| OR
--------------------------------------------------------------------------------
3,4 '3,4'
--------------------------------------------------------------------------------
| OR
--------------------------------------------------------------------------------
4,5 '4,5'
--------------------------------------------------------------------------------
| OR
--------------------------------------------------------------------------------
5,6 '5,6'
--------------------------------------------------------------------------------
) end of grouping
--------------------------------------------------------------------------------
$ before an optional \n, and the end of the
string