You probably don’t know what kind of plant it is? I can answer you this question, this is barberry. This is a small shrub that in the middle of spring already bears fruits in the form of small berries with a slightly sour taste. Barberry is healthy and is often used to make jam.
I took some photos of this amazing plant. I like these small berries and they go well with green leaves.