use a common DSN now instead of a URI

This is 99.99% of cases going to be skipped because it's mostly a one-time-per-request operation that depends on (typically) immutable config.

The regex performance improvement is O(1) with most requests now having more function calls during bootstrap, therefore you are not really optimizing much, if not just worsening it.

Performance is not really the point though: it's just an added conditional for something that will already be caught, and that just increases npath complexity.