BOOT0/PB9 pin limitation: typical input leakage current = 2 µA and input frequency limited to 10 kHz (1.65 V < VDD < 2.7 V) and 5 MHz (2.7 V < VDD < 3.6 V).
I advise you to refer to RM0377 and the STM32L011x3/4 datasheet for more details about the electrical characteristics of the pull-up resistors.
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks