I think it should be `echo $remote_url | sed 's/^[^:]*[:/]\(.*\)\.git.*/\1/'`
@maximhoffman could you please fix the command?