To the best of my knowledge, no FS-based sim has ever provided a variable that gives you oil burn per engine. I can't speak for MSFS202x but neither the aircraft.cfg file nor the aircraft.air file in the other sims ever provided a method to define oil burn. If you can't get the existsing gauge to work, the best option is to start again from scratch.
As Lagaffe says, you have to compute your own oil consumption to reduce the percentage shown by the sim during flight. I did this for the Wright R-2600 series where oIl burn information was taken from the relevant Curtiss-Wright manuals. As they only give burn by volume, that had to be converted into percentage burn. The resulting percentage reduction was set on the sim using SimConnect. However, this requires the use of a C/C++ gauge.
The better alternative is to completely ignore the percentage values provided by the sim and use your own variable to track oil use depending on the engine power output. This gives you the ability to calculate oil burn either by percentage or by volume, depending on your preference. It also means that the calculation should be (relatively) easy in XML as you have complete control over the maths vs. flight parameters. The very simplest way to do it is to get the amount of oil burned vs rpm specified by the engine manufacturer; for example, the R-2600-11 has the following specifications:
Max allowable oil consumption at normal rated power: 17qts/hr
Normal rated power: 2300rpm
Max allowable oil consumption at maximum cruising: 13qts/hr
Max cruise: 2050rpm
Treat it as a linear slope, so if the RPM is set to 2175 then the engine will burn 3.75qts after 15mins, 7.5qts after 30mins and 15qts every hour. Note that this is
maximum allowed oil consumption, but I've never found an engine manual that gives minimum oil consumption. I'd reduce the maximum figure by no more than 10% if you want a 'good' engine. Or randomise it on a per-flight basis.
[Edit] For anyone else:
Pratt & Whitney R-985 Operating Manual.