Withdraw scholarship money from 529 - question on tax implications

Everything I’ve read used the word scholarship, which to me meant not need based. Glad to hear that folks getting need based aid can also withdraw without the penalty and only pay taxes on the gain.