I’m nitpicking here, but that’s not true. There are five Pharaohs named in the Old Testament. Of them, 3 have names that match names from secular history.
" Now Sennacherib received a report that Tirhakah, the king of Cush, was marching out to fight against him."-2 Kings 19:9. Tirharkah (usually spelled Taharqa) was the fifth Pharaoh of the 25th Dynasty.
"While Josiah was king, Pharaoh Necho king of Egypt went up to the Euphrates River to help the king of Assyria. King Josiah marched out to meet him in battle, but Necho faced him and killed him at Megiddo. . . . Pharaoh Necho put [Jehoahaz, Josiah’s son] in chains at Riblah in the land of Hamath so that he might not reign in Jerusalem, and he imposed on Judah a levy of a hundred talents of silver and a talent of gold. Pharaoh Necho made Eliakim son of Josiah king in place of his father Josiah and changed Eliakim’s name to Jehoiakim. But he took Jehoahaz and carried him off to Egypt, and there he died. "-2 Kings 23:29, 33-34 Necho II was a Pharaoh of the 26th Dynasty.
"This is what the Lord says: ‘I am going to deliver Pharaoh Hophra king of Egypt into the hands of his enemies who want to kill him, just as I gave Zedekiah king of Judah into the hands of Nebuchadnezzar king of Babylon, the enemy who wanted to kill him.’”-Jeremiah 44:30. Hophra is the Pharaoh Wahibre Haaibre, more commonly known as Apries, Necho II’s grandson.
There are also two Pharaohs named in the bible whose names don’t match with the secular lists: Shishak and So. Shishak is recorded as allying with the Kingdom of Israel and attacking the Kingdom of Judah, and he’s usually connected with Sheshonk I, because the name is close, and because Sheshonk did attack into Canaan in his reign.
So is more mysterious (and all the bible says is that Hosea sent envoys to him, which pissed off the Assyrians), and could either be Osorkon IV or his rival Tefnakht. So could be short for Osorkon, or, since Egypt was in the middle of a civil war at that point with rival claimants for Pharaoh, So could be a version of Sais, which was the city that Tefnakht ruled from.