Hi YerĂș!
Rest assured your Class Trial character wouldn't get deleted once the expansion trial period ends :)
Note that Class Trials do have certain limitations though, so you would need to use a Character Boost should you wish to unlock that character permanently:
https://battle.net/support/article/64574