Copied directly from https://github.com/hanickadot/compile-time-regular-expressions/blob/v3.8.1/single-header/ctre.hpp