There are two requirements to deduct the interest:
1. You actually paid it
2. You are legally obligated to pay it
If the parent co-signed the loan, then both of you are legally obligated to pay it. So, the one who actually paid it gets the deduction. The name and SS# on the form 1098-T does not change those rules.