Measurement of $CP$ asymmetries in $B^0 \to K^0_S π^0 γ$ decays at Belle II