Is there a way to specify beginning of line in a Pluma Search?

It works with leading tab ^\t, but not with leading space ^ .

So it seems to be a bug in Pluma or its 3rd-party regexp-parsing library.

I have reported it here.

As alternative you can use Kate editor which can be installed with:

sudo apt install kate