However, the textbooks also refer to heat, sometimes, as a form of
energy, which doesn't make sense to me. Heat is one of the methods of
transferring energy, how can it be a form of energy?
You are absolutely correct. Heat is not a form of energy. It is a mechanism by which energy is transferred from one substance, object, etc., to another due solely to temperature difference.
When I was learning about thermodynamics I found a particular description that, at least for me, help differentiate between the energy of something and the transfer of energy (by work or heat) from one thing to another. In this case the transfer of energy by heat. I'd like to share it with you in case it might be helpful. For simplicity, the description is for heat conduction.
Consider two solid objects, one having a higher temperature than the other. Which means the molecules of the higher temperature object 1 have a higher average translational kinetic energy than the molecules of the lower temperature object 2.
The objects are placed in contact with each other. At the interface between the objects the molecules of the higher temperature object collide with the molecules of the lower temperature object. On average, this results in the transfer of kinetic energy from the molecules of the higher temperature object to molecules of the lower temperature object causing the temperature of the higher temperature object to decrease, and the temperature of the lower temperature object to increase.
This transfer of kinetic energy from the molecules of the higher temperature object to the molecules of the lower temperature object is what we mean by heat. But the increase in the average kinetic energy of the molecules of the lower temperature object and decrease in the average kinetic energy of the molecules of the higher temperature object is what we mean by a change in the internal (kinetic) energy of the two objects. Thus the difference between the transfer of energy and the energy itself.
Hope this helps.