I'm taking a course on complex manifolds, and in class we saw this fact for complex manifolds. I have a moderate background in algebraic geometry, and was interested in the same question for $\mathbb{P}^n$ bundles over a scheme $X$, where now we interpret the transition functions on $\operatorname{Spec} A \times \mathbb{P}^n$ as $A-$linear automorphisms of the homogeneous ring $A[x_0, ..., x_n]$. Maybe this is a good formulation of the precise question: is every such bundle isomorphic to $\mathbb{P}(\mathscr{E})$ for some locally free sheaf $\mathscr{E}$?
I'm sure that there is some really high-powered proof using tools that are above my paygrade though like GAGA or something. Personally I'd just like to see to what extent this is still true in the algebraic setting, although not necessarily over the complex numbers, or if possible, even projective space over a ring would be nice to know some things about.