Disclaimer: IANAL.
Most licenses disclaim liability.
99% of all software comes with an end-user license agreement saying “we aren’t liable for anything that’s gonna happen to you because of our software”. Also, EULAs sometimes (like in MS Windows) forbid usage of the software in safety-critical applications, defined as “device or system in which a malfunction of the software would result in foreseeable risk of injury or death to any person”
Other 1% of the software, legal teams underperformed and were unable to press public enough to accept similar agreements. So, in automotive, avionics and especially medical devices, users sometimes indeed sue manufacturers over faulty software. However, I’ve never heard about a process for hiring someone incompetent. People usually bring claims against companies for making a defective product, asking for compensation.