Excluding a plugin module from compiling in a certain config

Has anyone managed to get ExcludelistTargetConfigurations to exclude a module from being compiled for a certain configuration, like Shipping for example?

I have a custom plugin that is part of my project, and in the .uplugin, I set the ExcludelistTargetConfigurations of one module to Shipping, but it still compiles the code for the module when I compile the project in the Shipping config.

I am using UE5.4.3

No luck here

I found solution here. Use TargetConfigurationDenyList insteadof ExcludelistTargetConfigurations