Currently a RESTBase ID is mw+Base64, so /mw[A-Za-z0-9_-]+/, however this conflicts with mw-reference-contents IDs and possibly others.
For T146054 we are required to strip IDs for imported content, but to do that we need to know what a RESTBase ID is.