Regex for 2 conditions

Hello! I am using kobo forms for a field survey.
I wrote a regex for one number string to match and now need to add another for 2 possible answers

It should be 000-00C00000 or 000-00-0000
regex(.,'^[0-9]{3}-[0-9]{2}[C-][0-9]{5}$') | (,.'^[0-9]{3}-[0-9]{2}-[0-9]{4}$')

The field enumerator should be able to input only either of these number formats.

I have written the expression many ways to test but I am unable to apply it. Please help. Thank you in advance.

It should work on mobile end image

Thank you! I have tried this but it does not work. I need for one or the other option to be valid for entry and no other version.

Thanks I was not able to use this regex either.