You are 90% of the way there.
^[0-9,;]+$
Starting with the carat ^
indicates a beginning of line.
The [
indicates a character set
The 0-9
indicates characters 0 through 9, the comma ,
indicates comma, and the semicolon indicates a ;
.
The closing ]
indicates the end of the character set.
The plus +
indicates that one or more of the "previous item" must be present. In this case it means that you must have one or more of the characters in the previously declared character set.
The dollar $
indicates the end of the line.