Denzel, please don't look on that time as a total waste. You learned a valuable lesson. This will never happen to you again.
And if it makes you feel any better, literally THOUSANDS of new contractors on Upwork have done the same thing you did.
For the record, we always tell newbies they could be suspended for this, but in practice Upwork is not likely to do that. You have already been punished by spending the time and not getting paid.
Upwork is embarrassed about how often this happens. They blame the scammers more than they blame the contractors who fall prey to this scam. Unfortunately, the scam is a clever one and difficult to eradicate.