Stealth isn't about being undetectable, stealth aircraft have always been detectable, the Serbs shot down a F-117 22 years ago, Iraqi search radars picked them up 30 years ago. But even though they are detectable they can make the enemy have to work harder.
Also, stealth should never work alone, it should work in coordination with non-stealth aircraft, drones and stand off jammers as a coherent whole. Detecting stealth aircraft is easy, detecting stealth aircraft against massive background noise from a wall of jammers while missiles and drones are going after your radars is a lot harder.
There's no hiding in space, US, Russia and China have all demonstrated abilities to destroy satellites. In a significant war between any of those three nations those satellites will be gone in a week, maybe even a day.