The concept of darkness in space can be a bit counterintuitive. While it may seem that the Sun, being a bright source of light, should illuminate everything around it, space itself is predominantly dark. The reason for this is the vastness of space and the way light travels.
In space, there is no atmosphere to scatter or diffuse light, as is the case on Earth. On our planet, the atmosphere scatters sunlight, creating a blue sky during the day. However, in space, there is no scattering of light to fill the space with a uniform brightness. Instead, light generally travels in a straight line until it encounters an object or is absorbed.
When you are in space, away from any nearby celestial objects, the absence of scattered light results in darkness. This darkness is often referred to as "cosmic darkness" or "the darkness of space." It's similar to being in a dark room with no light sources.
That being said, the Sun is indeed a tremendously bright source of light. When you are in close proximity to the Sun, such as in the vicinity of Earth, the sunlight can be overwhelming and can cast bright illumination on nearby objects. But as you move away from the Sun, the light intensity diminishes significantly, and space appears dark once again.
So, while the Sun illuminates objects close to it, the vastness of space and the absence of scattering particles result in darkness when you are not in the immediate vicinity of a light source.