To rename the zpool first you have to export the pool:
$ zpool export <old-name>
example: $ zpool export local-zfs
And then imported it with the correct name:
$ zpool import <old-name> <new-name>
Example: $ zpool import local-zfs rpool
After the import completed, the pool have the correct name:
$ zpool status -v
zpool status -v
pool: rpool
state: ONLINE
scan: scrub repaired 0B in 0 days 00:01:28 with 0 errors on Sun Oct 13 00:25:29 2019
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
ata-Samsung_SSD_860_QVO_1TB_S4CZNG0M604463A-part3 ONLINE 0 0 0
errors: No known data errors