Although the documentation says that the analyzers work for projects that target net5.0 as well as earlier .NET versions, such as netcoreapp3.1 and net472.
But when I tested it, it took effect immediately after using it in the .Net Core3.1 project and adding the configuration information you provided.
But for .Net Framework 4.7.2, it is always useless. I'm not sure if this is a design flaw of the package or different configuration information is required in the .Net framework.
I suggest you ask for confirmation in its GitHub repository.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.