Having skimmed those abstracts, all they say is that it's an anti-inflammatory, not that that's it's mechanism for fighting hair loss.
The study pegasus linked to on the previous page shows that it's an effective hair loss treatment and that it inhibits test turning into DHT
https://onlinelibrary.wiley.com/doi/full/10.1111/dth.13202
"In addition, ketoconazole blocks testosterone synthesis, thus decreasing DHT, and further supporting the theoretical role of ketoconazole in the treatment of Androgenetic Alopecia (Pont, Williams, Azhar, et al.,
1982)."
ALthough they also say this:
"
Ketoconazole increased the ratio of hair regrowth to denuded area in both murine studies. This raises the possibility of a non‐androgenetic role of ketoconazole in hair regrowth. This could be due to anti‐inflammatory properties of ketoconazole and/or conversion of follicles out of the telogen resting phase. In Androgenetic Alopecia, hair follicles experience a brief anagen phase of growth and prolonged telogen (resting) phase, causing new hairs to be shorter (Piérard‐Franchimont & Piérard,
2001).
However, hair regrowth in individuals using ketoconazole, but without a diagnosis of Androgenetic Alopecia, was not found in human studies. The study by Piérard‐Franchimont et al. (
1998) included a control group of age‐matched men without Androgenetic Alopecia. In this group, the pilary index remained unchanged throughout the study regardless of use of ketoconazole or unmedicated shampoo. The reason for this difference between humans and mice is unclear."