Regular Expressions: How to escape "*"?

Hello,

I am trying to create a Regular Expression field to generate something similar to \d{3}(\*|@)\d{3} which could result in 123*456 or 123@456. Whenever I try to escape the asterisk, I get:

Error: Sorry, "\*" is too vague, try setting a range: "\{0,3}"

How might one accomplish this?

Thanks!
-Jackson

I did come up with a workaround in the meantime. Changed the regex to \d{3}(STAR|@)\d{3} and added a formula:

this.gsub(/STAR/, "*")