A redirect loop after a move often comes down to two options that do not match what you expect.
wp option get siteurl
wp option get home
wp config get WP_HOME
siteurl is the address of the WordPress files and home the address visitors use. Both live in the options table. If wp-config.php defines WP_HOME or WP_SITEURL, those constants override the stored values without changing the database, so check them as well. The last line fails with an error when the constant is not set, which is already useful information. Change a stored value with wp option update home 'https://example.com'.
Further reading: WP-CLI: wp option get