I was painting a painting of Fatima- Al Zahra a.s today and the noha was the listening to said “SalamAllah alayki” or something along the lines of and while I was painting I looked at the painting and said “SalamAllah Alayki Ya Fatima” like I was talking to the painting of her is that shirk?

You cannot look at a paint and say Salam. It’s not acceptable practice and that should not be repeated. Allah forgives since we have regretted and repented.