The ion versions of elements have different oxidation states, such as chlorine ions and chloride ions, sodium ions, magnesium ions, nitrous ions, and so on.
In compounds, the main group metals have the oxidation States equal to the charge of the iron, such as sodium which stays plus one, magnesium which stays plus two, hydrogen which is almost always plus one, and oxygen which is almost always negative two.
In the equation H2O2 plus one which makes this plus two overall and negative one, the individual atoms are plus one and negative one, with negative one instead of negative two.