? is the 0-1 quantifier in Regexes. \d? means 0 or 1 digit. * - 0-infinite quantifier. \d* means 0 or more digits. Is this what you want? (in addition, + is 1 or more quantifiers, and not a quantifier means exactly 1)
To clarify what you asked, I would say
question(_\d+)?
question and then optional ( _ AND 1 or more digits)
In cases where the brackets are only for grouping subexpressions (they are "mathematical" brackets)
source share