When my One Plus 8 Pro was "Upgraded" from Oxygen OS 11 to Oxygen OS 12 (now Color OS based, like Oppo phones), I lost the ability to set my screen timeout via Macrodroid.
The problem of Set Screen Timeout not working might be an Oppo thing.
I haven't yet found a workaround, but I'm continuing...