This means they can scratch glass (hardness 5.5) but can be scratched by a steel file (hardness 6.5).
However, specific pyroxene varieties can have slight variations in hardness due to their chemical composition.