Braid varieties and algebraic weaves