Hi @e30powar,
Couple of options -
1. If you are tracking page url or domain or report suite id in any variable (prop/eVar) to differentiate stg vs production environment than create a exclude segment based on available options. If not start tracking it.
2. If you using virtual report suite, use segment created through step #1 to exclude data from virtual report suite.
3. As you can't directly use regular expression to count "order id" characters in segments in that case use auto classification rule builder to create a rule for order id having 5 digits vs all others and use that classification in segment to exclude data by either using #1 or #2 method.
Thanks,
Asheesh