In reply to Juego.

The error came from the quotation mark used for sed. Here it is corrected :)

echo 'some awe' | sed 's/\(some\) *\(awe\)/\2\1/g'