I started a new game and immediately used that command that worked. The following techs are visible as red and unavailable techs despite not having any of its prereqs researched:
"Electric mining" from [AAI Industry > Krastorio 2 > AAI Industry] with no known prerequisites.
"Cargo rocket silo" from [Space Exploration > Rocket-Silo Construction], which shows as "Undiscovered" with no known prerequisites.
"Space capsule navigation" from [Space Exploration], which shows as "Undiscovered" with no known prerequisites.
...
After completing my first research "Basic logistics" from AAI Industry > Krastorio 2 > AAI Industry, the following unavailable research options came up as red despite the techs not showing any techs that I have researched or that are available to research:
"Basic fluid handling" from [Krastorio 2 > AAI Industry > Krastorio 2 > Space Exploration Postprocess (required) > Aluminum] with the unavailable prerequisite technology "Electricity" from [AAI Industry > Lighted Electric Poles + > Krastorio 2 > AAI Industry > Krastorio 2 > Aluminum]; the "Electricity" technology shows an available prerequisite technology "Fuel processing" from [AAI Industry > Krastorio 2 > Aluminum].
"Copper text plates" from [Aluminum], which it shows the prerequisite and unavailable technology is "Copper processing" from Aluminum (which is the "bzaluminum" mod)
"Copper processing" from [Aluminum], which it shows the prerequisite and unavailable technology is "Electricity" [as described above]
"Welcome to the Jungle" from [Krastorio 2] with no known prerequisites.
"Stone Processing" from [Krastorio 2 > Space Exploration], which it shows the unavailable prerequisite technology "Crusher" from [Krastorio 2]; "Crusher"'s available prerequisite technology is "Automation core" from [Krastorio 2 > Aluminum > AAI Industry].
"Sentinel" from [Krastorio 2 > Space Exploration Recycling Extras > Space Exploration Postprocess (required) > Aluminum] with no known prerequisites.
"Electric mining," which now shows a prerequisite technology of "Electricity," which is unavailable but a prerequisite of "Electricity" is "Fuel processing" from [AAI Industry > Krastorio 2 > Aluminum] as an available technology to research.
It also shows some other technologies that are unavailable but have available prerequisite technologies.
"Gun turret" from [Base mod > AAI Industry > Krastorio 2], which has the available prerequisite technology "Military" from [Base mod > Natural Evolution Buildings > Krastorio 2].
"Basic wall" from [Base mod > Dectorio > Krastorio 2], which has the available prerequisite technology "Military" [as described above].
"Crusher," which was described above
"Automation tech card" from [Krastorio 2 > Aluminum], which has the available prerequisite technology "Automation core" [as described above] and the unavailable prerequisite technology "Copper processing" [as described above].
"Light armor" from [Krastorio 2], which has the available prerequisite technology "Military" [as described above].
"Electricity" [as described above].