The reason for this behavior is that the built-in readuses \as an escape character. The flag -rdisables this behavior.
So this should work:
while read -r line
variable=$(echo $line | awk -F, '{print $2}')
echo $variable
done < ./file.csv
You should also place "..."things like $(...)variables around , for example
variable="$(command)"
echo "$variable"
source
share