Azure Devops: Filter Test Projects in Nuget Build Pipeline
I noticed that the description for the filepath properties of the pack command is different than the descriptions in the test and publish commands:

Pattern to search for csproj or nuspec files to pack.

You can separate multiple patterns with a semicolon, and you can
make a pattern negative by prefixing it with '-:'. Example:
**/*.csproj;-:**/*.Tests.csproj


So perhaps try -:**/*[Tt]ests.csproj;**/*.csproj instead. I don't think this explains why the unit tests are excluded and the integrated tests are not, though.