I feel like you got your answer in a previous thread… at least one proposed workflow by @agriggio Alberto. Which I would interpret as set you grey with the gain slider and map your white and black and if need be you can lighten the midtones a bit with the target gray… but maybe I am missing a nuance …
You might also take a look at some of the options in the scripts…there are now several…
And recently someone shared or uploaded about 6 or 7 others… so if you are still trying to tweak your look or edits and log tone mapping is not quite there for you or maybe in some cases there are other ones that you can try…