Teams are not allowed to drive their cars on track outside of a few set moments. There’s pre-season testing, a few days post-season, and that’s about it. Although a few weeks back there were extra tests for the new tires.
It takes a few years (three, I believe) for cars to become freely available to teams. At promotional events you’ll see Red Bull drive a repainted 2019 car, for example.