We got this plant gifted and ask us what that is for a plant and if you can eat. Has similarity with Chilli
This is a variety of peppers. The fruits are basically edible, but should not be consumed in the 1st year since the plant was treated with great security with pesticides. From the 2nd harvest, the fruits can be consumed without hesitation.
This is a pupprika, a plant from the paprika chilli family.
Basically, you could eat such a thing, but ornamental plants are treated with completely different poisons than crops. If you keep it without a poison for a year, you can eat the next harvest.