The position in basketball that most resembles the sweeper in soccer is the point guard.
Just as a sweeper is responsible for organizing the defense, providing support, and initiating plays, the point guard takes on a similar role in basketball by orchestrating the offense, facilitating ball movement, and often being the primary defender against the opposing team's playmaker.