I identified the issue—I need to wrap the URL in quotes; otherwise, the &
symbol is interpreted by the shell.
uv pip install "git+ssh://[email protected]/project/repository.git@branch-name#egg=package-name&subdirectory=subdirectory"
The UV team assisted me here.