Okta.AspNetCore with .NET 6: Could not load file or assembly 'System.IdentityModel.Tokens.Jwt, Version=

I’m following these articles:
[Sign users in to your web app using the redirect model | Okta Developer]
[Protect your API endpoints | Okta Developer]

However, I’m using .NET 6. I found a post in this forum stating that it works perfectly fine. However, when running either of my projects, I get the following exception:

Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'System.IdentityModel.Tokens.Jwt, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
File name: 'System.IdentityModel.Tokens.Jwt, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at Okta.AspNetCore.OktaAuthenticationOptionsExtensions.AddCodeFlow(AuthenticationBuilder builder, String authenticationScheme, OktaMvcOptions options)
   at Okta.AspNetCore.OktaAuthenticationOptionsExtensions.AddOktaMvc(AuthenticationBuilder builder, OktaMvcOptions options)
   at Program.<Main>$(String[] args) in C:\Dev\DevMisc\ApGoAPI\ApGo.Web\Program.cs:line 7

I have installed the package by:

dotnet add package System.IdentityModel.Tokens.Jwt --version 6.17.0

But no success. Any ideas?
Thank you.