The blade comes out first
TSA’s entry: “The blade must be removed prior to entering the screening checkpoint. TSA officers are not authorized to remove the blades from the holder.”
The blades themselves can’t go in your carry-on. Loose razor blades go in your checked bag.
In a checked bag
The whole razor, blade in, is a yes. Wrap or sheathe it.
Flying home from abroad
TSA’s answer covers screening at US airports. On the way home you go through the other airport’s screening first, and its rules are the ones that count there.
TSA puts this on every entry: “The final decision rests with the TSA officer on whether an item is allowed through the checkpoint.”