Yellow mushroom is an item found in Valheim.
As with most plants, these regrow naturally after being picked up. Picked mushrooms will respawn after 240 minutes. They are the only part of an underground chamber that regenerates.
Boars will not eat Yellow mushrooms. It may have to do with their light producing quality or may just be a bug at this time.