wget -S --spider https://rb.gy/x7cg8r 2>&1 \
| sed -En 's/^--[[:digit:]: -]{19}-- (.*)/\1/p'
Compared to the curl-based solution...
The curl-based solution omits the first url in the redirect chain:
$ curl -v -L https://rb.gy/x7cg8r 2>&1 | grep -i "^< location:"
< Location: https://t.co/BAvVoPyqNr
< location: https://unix.stackexchange.com/
Furthermore, it incurs a 4354.99% increase in bytes sent to second pipeline stage:
$ wget -S --spider https://rb.gy/x7cg8r 2>&1 | wc -c
2728
$ curl -v -L https://rb.gy/x7cg8r 2>&1 | wc -c
121532
$ awk 'BEGIN {printf "%.2f\n", (121532-2728)/2728*100}'
4354.99