That is the correct use of pedestrian as a noun.
Leaving out context that would otherwise change the interpretation of most or targeted people is the main way to misled those people without technically lying.
[1]https://static.nhtsa.gov/odi/inv/2024/INOA-PE24031-23232.pdf
For understanding the accident it does seem meaningful that they were motorists that got out of their car on a highway and not pedestrians at a street crossing. (Still inexcusable of course, but changes the context)
(I also do tend to avoid this level of pedantry, the points here are all well taken to be clear. I do think the original poster was fine in their comment, I was just sayin' - but this isn't a cross I would die on :))