South Africa has expressed concern about the situation in Iran, urging the Iranian government to allow peaceful protests and uphold human rights.