Making a pill capsule filled with powder
Transparency is very difficult to get right, especially when there's something inside of the transparent object. https://blend-exchange.com/b/6V8odJJx Here is a link to my own recreation of your image. I used a Voronoi texture that's run through a colour ramp to get the right look of the inside of the pill. Doesn't need to be too detailed unless you zoom really close to the object. Then I duplicated the shape in object mode and extruded it to have a bit of thickness. I then added a new material and changed the transmission, alpha, roughness, and specular settings until I got something that looked decent. Make sure to change the IOR as well, it's automatically set to glass.
Here's an example of my attempt, it's by no means perfect but its a good jumping off point.