@test_logs and the VSCode Testing pane

I’m using @test_logs to verify that a certain warning message is issued under certain conditions. This seems to work fine when running via ]test, but when I run by hitting the green “play” triangle in the VSCode Testing pane, I get this error:

ERROR: LoadError: MethodError: no method matching scrub_backtrace(::Vector{Union{Ptr{Nothing}, Base.InterpreterIP}})

My test code looks something like this:

@testitem "Data reading" begin
    arg = something()

    @test_logs (:warn, Regex("my regex")) begin

I don’t have a real reproducible example right now because this is in the tests for some code that I can’t share, but I wanted to ask in case this has been seen before.