Parameters with defaults don't compile

Upgrading Akka HTTP to 10.2.0, I am getting compilation errors using default parameters. The following code using non-defaulted parameters compiles just fine:

import akka.http.scaladsl.server.Directive
import akka.http.scaladsl.server.Directives._
val page = 'page.as[Int] // <-  NameReceptacle[Int]
val perPage = 'per_page.as[Int] // <-  NameReceptacle[Int]
parameters(page, perPage) // <- Directive[(Int, Int)]

but adding default behavior fails with Cannot resolve overloaded method 'parameters'

val page = 'page.as[Int] ? 1 // <-  NameDefaultReceptacle[Int]
val perPage = 'per_page.as[Int] ? 20 // <-  NameDefaultReceptacle[Int]
parameters(page, perPage) // <- Cannot resolve overloaded method 'parameters'

Have I missed something in docs?

I tried to reproduce this (https://github.com/raboof/parameters-with-defaults, specifically https://github.com/raboof/parameters-with-defaults/blob/main/src/main/scala/com/example/UserRoutes.scala#L48) but this compiles for me - can you narrow down how to trigger this problem?

You are correct, this is not a bug. Initially, I had an import problem, and once I corrected it, IntelliJ still highlights this as a problem.
image