I'm using Big Sur, and my sysctl.conf changes aren't working either (although I'm using it for different reasons -- disabling IPv6 privacy addresses). However, I remember it always used to work in both Mojave and Catalina. Maybe a recent update turned off support for sysctl.conf in all of these versions of macOS?