Currently, the logic will sort rules by len and will prioritize /something/(.). Sure, it can be addressed with the proper regex exclusion, i.e. /something/((?!abc$).) but it would be helpful to strip the group part before we do sorting, so it will consider /something/(.*) as /something/ and will automatically put it below /something/abc