Mark regular expression literals as stable

Fixes part of bug 677022.