In the Name of Allah, the Most Gracious, the Most Merciful.
As-Salāmu ‘Alaykum Wa-Rahmatullāhi Wa-Barakātuh.
In principle, Sadjah of Sahw has to be done when a Wajib is left out.[i]
In your case Sajdah of Sahw was not necessary as the sequence recital of Basmalah (Bismillahir Rahmanir Rahim) is not Wajib.[ii] Therefore, your salah is valid.
And Allah Ta’ala Knows Best.
Anas Bin Mohammad
Student Darul Iftaa
Abu Dhabi, U.A.E
Checked and Approved by,
Mufti Muhammad Zakariyya Desai.
https://iftaa.co.za/8331/validity-of-salah/