Hello @maruscagabriel,
When you use RICG plugin you need to upload the images from the beginning in the posts/pages that were created before you added RICG to wordpress. I noticed that in some earlier pages I had published, images were not responsive and the srcset was missing from the code, BUT once I deleted those image from the page and uploaded them again, the srcset was working.
I hope this helps, but if it doesn’t you can ask to the Genesis Forum or file a ticket to their support team, they generally send you a replay by tomorrow.
P.S, I am new to PHP so I can’t really figure out if there’s something wrong with your code :/