AIUI if a library is GPL3 then libraries which include it as their dependencies need to also be licensed as GPL3.
Use of snailquote should be replaced with a different library which can be shipped under the MIT license that pact_matching carries.
Unfortunately, a quite look suggests that the obvious alternatives are either also GPL3-licensed, or (in the case of shlex don't contain equivalent functionality. But that's only a quick search.