Regexes are used to support filters on compaction policies. Given the limited scope, it is preferable to use a lighter weight alternative. The single blocker is the use of RegexSet for efficient key matching. Replacing this would allow for a drop-in replacement.