I've gotten a number of different responses at airports. Atlanta requires removing a CPAP, but Reagan didn't. Any others know what airports require/don't require it? (And why its inconsistent)?
Speaking as someone who travels with someone who travels with a CPAP, the answer is: it varies.
The TSA gets a lot of crap, and (imo) much/most of it is deserved. But oddly enough, random checks are a reasonable security approach.
Traveling with a CPAP has improved immensely over the last few years. That's partly due to the equipment getting smaller & lighter, partly because more people have been diagnosed with sleep apnea (and so the TSA sees CPAPs more often), and partly due to TSA employees getting some training. It's been many years since the time I saw someone told they couldn't bring their CPAP on board "because it's scuba gear, and we don't allow pressurized containers on board."
The good news: as it's medically-required equipment, the TSA has ruled that it doesn't count against your carry on or personal bag quota. And if you happen to toss an extra extension cord (or a pair of socks?) in the bag, what are they going to do?
The two places where things can get weird are:
Possibly useful resources: