Wat age do toddlers learn to share?

My son is 1 year old and when I take him to the library play area, he mostly goes up to older toddlers and takes their toys. Rarely the other toddler knows/wants to share, and most of the time they get upset so I quickly take the toy from my son and return it to the other kid and then try to distract both of them. I tell my son ‘he’s still using that’ or something similar but obviously he doesn’t understand English yet so I don’t know if that’s the right thing to do. The other parents sometimes side eye me and I end up just leaving or not going at all. I want to socialize my son a bit but it doesn’t seem like a good place for that. Am I doing something wrong or is there a better way to facilitate these interactions?