Only require regex for static builds