I recently got the One UI 3.1 update and I am so happy it has introduced Object eraser to Photo Editor.
- To enable this option, open any photo in Gallery. Click on the pencil icon at the bottom.
- Click the three dots at the top right corner.
- Open Labs.
- Enable Object eraser.
Have fun! 😁