You have a misplaced group. It should be I have \\$(\\d+\\.\\d+) in my bank account
.
But parsing floating point numbers with regex is not recommended. You have dozens of representation to represent a floating point number and the above regex only caters to a few.