That is far beyond what I learned in high school!
Those look like pretty accurate potential energy curves for diatomic molecules (as far as their shape is concerned—I cannot speak for the numbers). If you look at almost any book or review article discussing spectroscopy of diatomic molecules, those are the sorts of potential energy surfaces (PESs) you will see (see, for example, this question).
The cool thing is that these PESs can be calculated theoretically or determined experimentally (the classic experiment for undergraduate chemistry students is to analyse the UV-vis spectrum of $\ce{I2}$ and plot the potential energy surface based on the vibrational transitions observed for $\ce{I2}$ in several electronic states (here is an example of the experiment). In fact, just to prove it, here is my experimental PES for when I did the $\ce{I2}$ lab:
The PES is not simply an inverse square rule, it is actually a result of something people cannot actually model accurately yet—anharmonicity. For a diatomic, the closest we can get to the PES is a variation on a Morse potential (as said by Buck Thorn), which looks like:
$$V(r) = D_e(1-e^{-\beta(r-r_e)})^2$$
where
$$\beta = \omega_e\sqrt{\frac{2\pi c \mu}{D_eh}}$$
where $r - r_e$ is the deviation from the equilibrium bond length, $D_e$ is the dissociation energy, $c$ is the speed of light, and $\mu = \frac{m_am_b}{m_a + m_b}$ is the reduced mass of the molecule. For polyatomic molecules, the equations become infinitely more complex.
In summary, you are not being misled by your teacher, they are just covering the initial concepts, which is likely all you need to know to pass your exams. To alleviate your concerns, I can say that the experimental PES above was derived from entirely quantum mechanical principles (observation of discrete vibrational and electronic transitions). And, while I am fuzzy on the maths, I suspect the angular momentum you are referring to in your question is called the vibrational angular momentum. If you want to look that up you can, but, again, it is probably not important for you to know about.