The redirect_uri should be static and Okta will do an EXACT string comparison of the redirect_uri provided in your /authorize request with the Login Redirect URIs you’ve allowed for the application in Okta, so dynamic urls/query params are not supported.
I found this SO thread that goes into this a bit further, and there’s also another post on the forum here that discusses it as well.