You need to reexamine the mathematics of what you are doing. There is nothing to drive Q to be the inverse of P. What happens when you include an objective, such as minimize(trace(Q1)) ?
Without the inverse, it would produce P1, not its inverse.
In any event, I don’t know what your purpose is. If all you want to do is find inv(P1), you can do that directly in MATLAB without using CVX. If it’s an self-educational thing to do some Schur complement thing, then you need something else in your optimization problem to ensure “equality” at optimality, rather than just a semidefinite relaxation which need not be dirven to equality.