Since this is likely a CVT transmission I might ask whether the fluid has ever been changed. The level being good means nothing. Fluid additives break down and IMO a CVT should have the fluid changed every 30k miles or so.
You say the light only appeared AFTER a pressure test was performed so I might ask the reason for taking the car in originally. Transmission shifting oddly, noisy, or what?
When you took it back, what did explanation did they provide?
P0018–
Crankshaft Position- Camshaft Position Correlation (Bank 2, Sensor A).
Absolutely nothing to do with transmission vacuum or pressure. You need a much, much better mechanic.
Either a good independent shop or a Subaru dealership. Expect to pay for a diagnosis.
The OP requested a compression test of the engine, as a result of some problems probably relating to lax maintenance and resulting timing chain problems. Apparently, the mechanic did a manifold vacuum test on the engine, instead.
In any event, neither a compression test or a manifold vacuum test of the engine would have anything to do with a transmission problem.
My guess, the flashing transmission fluid over-temp warning light unrelated to prior engine diagnosis, coincidence. Trans problem likely either a faulty temp sensor, transmission electronic controller, or wiring/connector problem.
As far as the original p0018 problem, a compression test or an intake manifold vacuum test, both could be helpful for diagnosing a valve timing problem. The latter is easier to do, so it would make sense to start with that one.
Manifold vacuum might indicate there is a problem but this won’t get you any closer to a diagnosis of the valve timing malfunction. What will you do with the values they provide?
Tell the repair shop that the check engine light is on and you need a diagnosis and estimate of repair. There is a diagnostic procedure for checking the camshaft timing controls.